kibana/x-pack/test/plugin_api_integration/plugins
Gidi Meir Morris 5c770e5930
[Task Manager] Correctly handle running tasks when calling RunNow and reduce flakiness in related tests (#73244)
This PR addresses two issues which caused several tests to be flaky in TM.

When `runNow` was introduced to TM we added a pinned query which returned specific tasks by ID.
This query does not have the filter applied to it which causes task to return when they're already marked as `running` but we didn't address these correctly which caused flakyness in the tests.
This didn't cause a broken beahviour, but it did cause beahviour that was hard to reason about - we now address them correctly.

It seems that sometimes, especially if the ES queue is overworked, it can take some time for the update to the underlying task to be visible (we don't user `refresh:true` on purpose), so adding a wait for the index to refresh to make sure the task is updated in time for the next stage of the test.
2020-08-05 17:35:38 +01:00
..
elasticsearch_client [KP] Expose new es client (#73651) 2020-07-30 19:12:37 +02:00
event_log
feature_usage_test
sample_task_plugin [Task Manager] Correctly handle running tasks when calling RunNow and reduce flakiness in related tests (#73244) 2020-08-05 17:35:38 +01:00