This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from celery.task.control import revoke | |
from celery.task.control import inspect | |
def revoke_tasks_by_name(task_name, worker_prefix=''): | |
""" | |
Revoke all tasks by the name of the celery task | |
:param task_name: Name of the celery task | |
:param worker_prefix: Prefix for the worker |