在执行工单函数中,对于不正常的工单状态,记录日志,避免q-task不断重试 #2850
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
q-task对于执行超时的工单,会进行重试。但是在执行函数中,对于不在执行态的工单,会简单的报错,造成工单不断的被q-task重试执行,极易发生执行队列阻塞。
修改内容:在执行工单函数中,对于不正常的工单状态,记录工作流日志(提醒用户检查工单实际执行情况),不报错,避免q-task不断重试。