kibana/x-pack/test/plugin_api_integration/plugins
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
..
elasticsearch_client chore(NA): move into single pkg json (#80015) 2020-11-02 21:18:52 +00:00
event_log [event_log] index event docs in bulk instead of individually (redo) (#83927) 2020-11-20 13:49:30 -05:00
feature_usage_test Updating the licensed feature usage API response format (#67712) 2020-06-01 10:09:07 -07:00
sample_task_plugin [Task Manager] Increment task attempts when they fail during markTaskAsRunning (#88669) 2021-01-21 14:04:42 +00:00