[Fix-17758][Master] Mark task as failed if TaskExecutionContext initialization fails
Purpose of the pull request
close #17758
Brief change log
Add logic to handle tasks that fail during initialization.
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
Pull Request Notice
If your pull request contains incompatible change, you should also add it to docs/docs/en/guide/upgrade/incompatible.md
Should fire a
TaskFailedLifecycleEventwhen task initialize failed.
yes, add logic to handle TaskFatalLifecycleEvent
We need to use more direct titles to indicate the problems addressed by the PR.
Quality Gate passed
Issues
2 New issues
0 Accepted issues
Measures
0 Security Hotspots
85.0% Coverage on New Code
5.7% Duplication on New Code