Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [Master] Master sent incorrect timeout alerts for dependent tasks that were successfully executed #13815

Closed
3 tasks done
ralphgj opened this issue Mar 29, 2023 · 2 comments · Fixed by #13822
Closed
3 tasks done
Assignees
Labels
bug Something isn't working

Comments

@ralphgj
Copy link
Contributor

ralphgj commented Mar 29, 2023

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

I got timeout alerts ("Task Timeout Warn" and "Process Timeout Warn") from the alert server when I have dependent tasks in process definitions. But the dependent tasks with timeout alerts are all successfully executed.
The alert server is only responsible for receiving alerts. So I think the actual alerts should be generated by the master server.

What you expected to happen

No timeout alerts sent

How to reproduce

  1. Prepare two process definitions,first process definition have one task, second process definition have two tasks.
  2. The Second process definition have a dependent task which represent the task in the first process definition, and the timeout set to 1 minute.
  3. Another task in the second process definition running time should more that 1 minute.

image

image

image

image

Anything else

No response

Version

3.1.x

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@ralphgj ralphgj added bug Something isn't working Waiting for reply Waiting for reply labels Mar 29, 2023
@github-actions
Copy link

Thank you for your feedback, we have received your issue, Please wait patiently for a reply.

  • In order for us to understand your request as soon as possible, please provide detailed information, version or pictures.
  • If you haven't received a reply for a long time, you can join our slack and send your question to channel #troubleshooting

@ralphgj
Copy link
Contributor Author

ralphgj commented Mar 29, 2023

After debugging, I discovered that the dependent task was being added twice to the taskInstanceTimeoutCheckList.

image

Upon further investigation, I found that in the checkTask4Timeout method, the dependent task was not opening the timeout flag and would never be reached, even if it had already been added to the taskInstanceTimeoutCheckList.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants