Skip to content

Commit

Permalink
fix: downgrade from common 6.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jpantos committed Feb 7, 2025
1 parent e428845 commit 3901841
Show file tree
Hide file tree
Showing 3 changed files with 186 additions and 194 deletions.
4 changes: 3 additions & 1 deletion pantos/servicenode/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ def is_main_module() -> bool:
True if the current process is a Celery worker process.
"""
potential_celery_markers = ['celery', 'worker', 'beat', 'flower', 'report', 'ping']
potential_celery_markers = [
'celery', 'worker', 'beat', 'flower', 'report', 'ping'
]
return (__name__ == '__main__'
or any(marker in sys.argv for marker in potential_celery_markers))

Expand Down
Loading

0 comments on commit 3901841

Please sign in to comment.