Skip to content

Commit

Permalink
Merge pull request #848 from ImageMarkup/add-celery-logging
Browse files Browse the repository at this point in the history
Add celery task argument logging
  • Loading branch information
danlamanna authored Feb 29, 2024
2 parents 79211a5 + 11957eb commit 20203c6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions isic/celery.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import os

from celery import Celery, Task
import celery.app.trace
import configurations.importer
from django.db import transaction

celery.app.trace.LOG_RECEIVED = """\
Task %(name)s[%(id)s] received: (%(args)s, %(kwargs)s)\
"""

os.environ["DJANGO_SETTINGS_MODULE"] = "isic.settings"
if not os.environ.get("DJANGO_CONFIGURATION"):
raise ValueError('The environment variable "DJANGO_CONFIGURATION" must be set.')
Expand Down

0 comments on commit 20203c6

Please sign in to comment.