This file contains hidden or 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 import current_app | |
class CeleryHelper: | |
"""Contains helper functionalities to be used while interacting with Celery.""" | |
@staticmethod | |
def is_being_executed(task_name: str) -> bool: | |
"""Returns whether the task with given task_name is already being executed. | |
Args: |