发现 Celery 4.2.3 不支持类方法
例子:
class Demo:
@app.task
@classmethod
def test(cls):
pass
schedule 注册任务:
Demo.test
1
chenzi0103 8 天前
直接用 ray 不行吗 celery 写起来太费劲了
|