Skip to content

Commit

Permalink
fix for missing periodic task name in results
Browse files Browse the repository at this point in the history
  • Loading branch information
ntindicator committed Oct 8, 2024
1 parent 78d3230 commit 3ab299e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions django_celery_beat/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,13 @@ def run_tasks(self, request, queryset):
)
return

headers = {'periodic_task_name':periodic_task_name}

task_ids = [
task.apply_async(args=args, kwargs=kwargs, queue=queue,
periodic_task_name=periodic_task_name)
headers=headers)
if queue and len(queue)
else task.apply_async(args=args, kwargs=kwargs,
periodic_task_name=periodic_task_name)
else task.apply_async(args=args, kwargs=kwargs, headers=headers)
for task, args, kwargs, queue, periodic_task_name in tasks
]
tasks_run = len(task_ids)
Expand Down

0 comments on commit 3ab299e

Please sign in to comment.