You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Task Manager] time out work when it overruns in poller (#74980)
If the work performed by the poller hangs, meaning the promise fails to resolve/reject, then the poller can get stuck in a mode where it just waits for ever and no longer polls for fresh work.
This PR introduces a timeout after which the poller will automatically reject the work, freeing the poller to restart pulling fresh work.
Copy file name to clipboardExpand all lines: x-pack/plugins/task_manager/server/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,7 @@ The task_manager can be configured via `taskManager` config options (e.g. `taskM
41
41
42
42
-`max_attempts` - The maximum number of times a task will be attempted before being abandoned as failed
43
43
-`poll_interval` - How often the background worker should check the task_manager index for more work
44
+
-`max_poll_inactivity_cycles` - How many poll intervals is work allowed to block polling for before it's timed out. This does not include task execution, as task execution does not block the polling, but rather includes work needed to manage Task Manager's state.
44
45
-`index` - The name of the index that the task_manager
45
46
-`max_workers` - The maximum number of tasks a Kibana will run concurrently (defaults to 10)
46
47
-`credentials` - Encrypted user credentials. All tasks will run in the security context of this user. See [this issue](https://github.com/elastic/dev/issues/1045) for a discussion on task scheduler security.
0 commit comments