kibana/x-pack/test/plugin_api_integration
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
..
plugins [Task Manager] Increment task attempts when they fail during markTaskAsRunning (#88669) 2021-01-21 14:04:42 +00:00
test_suites [Task Manager] Increment task attempts when they fail during markTaskAsRunning (#88669) 2021-01-21 14:04:42 +00:00
config.ts [Task Manager] adds basic observability into Task Manager's runtime operations (#77868) 2020-10-27 15:58:04 +00:00
ftr_provider_context.d.ts
services.ts