8000 fix: show info message for mark_runner_started / mark_runner_completed by ocervell · Pull Request #694 · freelabz/secator · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: show info message for mark_runner_started / mark_runner_completed #694

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions secator/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ def mark_runner_started(results, runner, enable_hooks=True):
Returns:
list: Runner results
"""
if IN_CELERY_WORKER_PROCESS:
console.print(Info(message=f'Runner {runner.unique_name} has started, running mark_started'))
debug(f'Runner {runner.unique_name} has started, running mark_started', sub='celery')
if results:
runner.results = forward_results(results)
Expand All @@ -260,6 +262,8 @@ def mark_runner_completed(results, runner, enable_hooks=True):
Returns:
list: Final results
"""
if IN_CELERY_WORKER_PROCESS:
console.print(Info(message=f'Runner {runner.unique_name} has finished, running mark_completed'))
debug(f'Runner {runner.unique_name} has finished, running mark_completed', sub='celery')
results = forward_results(results)
runner.enable_hooks = enable_hooks
Expand Down
Loading
0