Home  >  Q&A  >  body text

python - 如何在Flask中创建Celery实例?

伊谢尔伦伊谢尔伦2741 days ago860

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-18 09:27:02

    It is easiest to dedicate a flask instance worker, which is the independence mentioned at the end of the question. The price is that the context is different, forget your g variable, the parameters can only be passed. They all use one instance, and it would be too troublesome to get rid of the circular import.

    reply
    0
  • Cancelreply