czue / czue/celery-progress

How would one use this progress bar when a task is wrapped in a Django transaction.on_commit?

Open
#84 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
497
Forks
89
PR merge metrics
No merged PRs in 30d

Description

Your usage notes for the view depends on the task returning a task_id:
```
def progress_view(request):
result = my_task.delay(10)
return render(request, 'display_progress.html', context={'task_id': result.task_id})
```
but a transaction.on_commit does not return a task_id, since the task may not have started yet. Any suggestions on how to use your progress bar with transactions?

Thanks!
Mark

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.