如何使用 ajax 为长芹菜任务实现进度条

How to implement progressbar with ajax for a long celery task

如何从 ajax 使用进度对话框显示进度来实施或检查 celery 任务的进度...以便用户可以在任务完成时启动下一个操作。我正在使用 python 烧瓶。谢谢

你可以使用这个很棒的包 Celery ProgressBar https://github.com/czue/celery-progress

这是一个帮助你的教程^_^ https://buildwithdjango.com/blog/post/celery-progress-bars/

希望这对您有所帮助