* 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>
14 lines
206 B
Python
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
|