在使用子工作流的过程中发现一直会有警告 temporal_sdk_core::worker::workflow: task not found when completing error=status: notfound, message: “workflow task not found.”,后面排查在使用temporal子工作流execute_child_workflow方法时,task_timeout被默认设置为10秒,如果10秒内任务还未结束会导致工作流失败,官方文档在介绍子工作流的时候给的demo没有明确指定task_timeout,并且在报错的时候给的告警比较模糊,这对于刚刚使用temporal的开发者来说并不友好
Hi, can you please ask question in English? Google translate is not giving good info for me at least. Thanks.
When using child workflows in Temporal, we encountered a persistent warning:
temporal_sdk_core::worker::workflow: task not found when completing error=status: notfound, message: “workflow task not found.”
After investigation, we found that the issue occurs because the execute_child_workflow method in Temporal sets the task_timeout to a default value of 10 seconds. If the task does not complete within 10 seconds, the workflow fails.
The official documentation’s demo for child workflows does not explicitly specify the task_timeout parameter. Furthermore, the warning message is vague and does not clearly indicate the cause of the problem. This can be challenging and unfriendly for developers new to using Temporal.
execute_child_workflow method in Temporal sets the task_timeout to a default value of 10 seconds. If the task does not complete within 10 seconds, the workflow fails.
not sure this is the issue. workflow task timeout is 10s by default, and its time service will wait for your worker to respond back to it with command to schedule your child workflow. your child workflow can run for as long as needed, and for parent this should not cause workflow task timeouts.
would you be able to share your execution json event history please? would help try to understand issue better (and also pls share full error stack)
the warning message is vague and does not clearly indicate the cause of the problem. This can be challenging and unfriendly for developers new to using Temporal.
you can get a lot more info about this via your worker metrics, specifically temporal_request_failure
metric which you can filter by operation
, and status_code