mirror of
https://github.com/magnum-opus-nn-cp/backend.git
synced 2024-11-10 18:06:33 +03:00
11 lines
250 B
Python
11 lines
250 B
Python
from config.celery_app import app
|
|
|
|
|
|
def get_scheduled_tasks_name() -> [str]:
|
|
i = app.control.inspect()
|
|
t = i.active()
|
|
all_tasks = []
|
|
for worker, tasks in t.items():
|
|
all_tasks += tasks
|
|
return [x["name"] for x in all_tasks]
|