-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Open
Labels
Description
Search before asking
- I had searched in the issues and found no similar issues.
What happened
now DependentExecute use findLastTaskInstance
to find task-instances in workflow-instance:
Lines 260 to 267 in 1317e83
<select id="findLastTaskInstance" resultType="org.apache.dolphinscheduler.dao.entity.TaskInstance"> | |
select | |
<include refid="baseSql"/> | |
from t_ds_task_instance | |
where workflow_instance_id = #{workflowInstanceId} | |
and task_code = #{taskCode} | |
order by end_time desc limit 1 | |
</select> |
when a workflow has been failover, the unfinished old task-instance's state will set into NEED_FAULT_TOLERANCE
(8) and then never handle it, but it will affect the query result above, some database is null first default, so even if the new task-instance is finished, the dependent task will still stuck in old task-instance's state.

What you expected to happen
ignore failovered task-instance in dependent handling.
How to reproduce
Anything else
No response
Version
dev
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct