我最近将芹菜从版本4.0.2
升级到4.2.0
,以下是在升级之前工作的,我无法找到需要更改的内容以使其在最新版本上运行。< / p>
示例:
@task
def run_mytask(pk):
print pk
task = tasks.run_mytask.delay(pk)
现在抛出以下错误:
TypeError: unbound method shadow_name() must be called with run_mytask instance as first argument (got tuple instance instead)