Skip to content

Commit

Permalink
remove print statements from celeryadapter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bgunnar5 committed Nov 30, 2023
1 parent 4b3bd48 commit ce945d0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions merlin/study/celeryadapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,17 +352,14 @@ def check_celery_workers_processing(queues_in_spec: List[str], app: Celery) -> b
"""
# Query celery for active tasks
active_tasks = app.control.inspect().active()
print(f"active_tasks: {active_tasks}")

# Search for the queues we provided if necessary
if active_tasks is not None:
for tasks in active_tasks.values():
for task in tasks:
if task["delivery_info"]["routing_key"] in queues_in_spec:
print("Workers are still active")
return True

print("Workers are no longer active")
return False


Expand Down

0 comments on commit ce945d0

Please sign in to comment.