-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ability to make task manager run a task immediately #50214
Comments
Pinging @elastic/kibana-stack-services (Team:Stack Services) |
Here's a curiosity... if you try to call I can see someone trying to rerun a task that has failed to see if its behaviour is now valid (if, for example, its results relies on a response from an external service. any thoughts @mikecote @peterschretlen ? |
I would say runNow should run it regardless of it being in the failed state. Presumably the person calling this would have reason to believe it should now succeed and it doesn't really hurt anything if we try and it just fails again. |
That's my instinct as well. |
I have an open issue in my PR, which I'm not actually sure needs to be addressed, but I'd like to hear your thoughts.
What this means is that if you schedule a task with a This means you would have had a This could be confusing, on the other hand - it is Task Manager's normal behaviour, so I'm not sure this is actually a problem. Any thoughts? |
Another question: what should a successful |
I think we're missing one issue that would solve this question. Based on #39349, alerts that fail running would just try again at the next interval. I think TM supports this when providing 'interval' but possibly not alerting's usage. So we may have to create an issue to cover this gap now that we're not moving over to TM's This would solve the question where the alert would just run again at its next interval.
I think simply resolving the promise for now is good enough, we won't be doing anything with the result at this time. |
yes, that's true - when using TM's interval it'll default to rerunning at that point.
Cool, I'll keep the ID in there for clarity. |
We're past 7.6.0 Feature Freeze so if this isn't a bug it should probably bump to v7.7.0. |
This marked in the GH project as done, so I think it should be closed, but @gmmorris would know for sure. |
Yup, this was done, not sure why the PR didn't close this at the time. |
Follow up task as result of #45152
We'll add an API to Task Manager that allows us to run a Task immediately, unless it is currently running, and this will allow us to force a refresh a scheduled tasks manually.
The text was updated successfully, but these errors were encountered: