Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions enterprise_catalog/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@
from celery import Celery


# TEMP: This code will be removed by ARCH-BOM on 4/22/24
# ddtrace allows celery task logs to be traced by the dd agent.
# TODO: remove this code.
try:
from ddtrace import patch
except ImportError:
pass
try:
patch(celery=True)
except NameError:
pass

app = Celery('enterprise_catalog', )

# - namespace='CELERY' means all celery-related configuration keys
Expand Down