阅读背景:

使用celery更新Django模型字段时避免使用递归save()

来源:互联网 

I'm overriding a model's save() method to call an asynchronous task with Celery. That task also saves the model, and so I end up with a recursive situation where the Celery task gets called repeatedly. Here's the code:I'm overriding a model's save() method to call




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: