Create celery task only if there is no such task running or scheduled

后端 未结 0 1977
南笙
南笙 2020-11-21 13:02

I have a task in celery, which takes a long time (170-200 seconds).

@task
def long_operation():    
    foo() # long operation, 170-200 seconds
相关标签:
回答
  • 消灭零回复
提交回复
热议问题