Update celery.py

This commit is contained in:
Curtis 2019-03-12 15:29:04 -07:00 committed by GitHub
parent 1a5a91ccc7
commit f38e5b0879
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ def make_celery(app):
celery = make_celery(flask_app)
def is_task_active(fun: str, task_id: str, args: str) -> bool:
def is_task_active(fun, task_id, args):
from celery.task.control import inspect
i = inspect()
active_tasks = i.active()