kibana/x-pack/test/plugin_api_integration/test_suites
Gidi Meir Morris c89f1f18d3
[Task Manager] Increment task attempts when they fail during markTaskAsRunning (#88669)
When something causes an exception in `TaskRunner.markTaskAsRunning()` its execution fails, but this happens before we update the SO, which means that this failure does not count towards the `attempts` on the task. Task Manager will continue to try running this task for ever.

This PR increments the `attempts` when a failure occurs during `TaskRunner.markTaskAsRunning()` to ensure such a task doesn't continue to run to infinity.
Note that this fix will not affect `scheduled` tasks, as they are designed to _ignore_ their `attempts` and run for ever. In such a case this task will continue to consume Task Manager resources until canceled, but these failures will be logged and could be identified when needed.
2021-01-21 14:04:42 +00:00
..
event_log chore(NA): create new x-pack cigroups and rebalancing them all (#88366) 2021-01-20 13:47:08 +00:00
licensed_feature_usage chore(NA): create new x-pack cigroups and rebalancing them all (#88366) 2021-01-20 13:47:08 +00:00
platform chore(NA): create new x-pack cigroups and rebalancing them all (#88366) 2021-01-20 13:47:08 +00:00
task_manager [Task Manager] Increment task attempts when they fail during markTaskAsRunning (#88669) 2021-01-21 14:04:42 +00:00