我正在尝试在组内运行某些链,由于某种原因,该链已被阻止,或者任务根本无法启动。它只是停止和停止。
基本上,代码可以归结为:
group([
chained_tasks[0],
chained_tasks[1]
]
).apply_async()
它永远挂着,我将不胜感激,我检查了backendresult和rabbitmq它们运行正常。我什至可以执行chained_tasks [0] .apply_async(),它可以正常工作。
这是一条链的样子:
job_chain = (
process_task.s(chip_measurement_object.raw_result_ref,
process_args,
process_args['file_path'],
process_args['meas_data'],
process_args['marker_data'],
process_args['session']
) |
update_marker_data.s() |
plot_task.s(chip_measurement_object.id) |
grade_task.s(chip_measurement_object.id) |
postgres_async_res_update.s(chip_measurement_object.id, self.input_args)
)
任务是故意可变的,因为我需要传播父母的任务结果。
这是我的设置:
# Sensible settings for celery
CELERY_ALWAYS_EAGER = False
CELERY_ACKS_LATE = True
CELERY_TASK_PUBLISH_RETRY = True
CELERY_DISABLE_RATE_LIMITS = False
# By default we will not ignore result
# If you want to see results and try out tasks_old interactively, change it to False
# Or change this setting on tasks_old level
CELERY_IGNORE_RESULT = False
CELERY_SEND_TASK_ERROR_EMAILS = False
CELERY_TASK_RESULT_EXPIRES = 600