Files
edx-platform/openedx/core/djangoapps/heartbeat/tasks.py
Muhammad Soban Javed bd601cf3a6 Update celery routing for celery 4+ (#25567)
* Update celery routing

- Used routing function instead of class
- Move task queues dictionary to Django settings
- Removed routing_key parameter
- Refactored routing for singleton celery instantiation

Co-authored-by: Awais Qureshi <awais.qureshi@arbisoft.com>
2020-12-16 13:40:47 +05:00

14 lines
206 B
Python

"""
A trivial task for health checks
"""
from celery.task import task
from edx_django_utils.monitoring import set_code_owner_attribute
@task
@set_code_owner_attribute
def sample_task():
return True