Skip to content

Commit

Permalink
fix for missing periodic task name in rabbitmq
Browse files Browse the repository at this point in the history
  • Loading branch information
ntindicator committed Oct 8, 2024
1 parent 2e717da commit 8ea61e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_celery_results/backends/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ def _get_extended_properties(self, request, traceback):
if task_kwargs is not None:
_, _, task_kwargs = self.encode_content(task_kwargs)

properties = getattr(request, 'properties', {}) or {}
periodic_task_name = properties.get('periodic_task_name', None)
periodic_task_name = getattr(request, 'periodic_task_name', None)

extended_props.update({
'periodic_task_name': periodic_task_name,
'task_args': task_args,
Expand Down

0 comments on commit 8ea61e1

Please sign in to comment.