-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Scheduled trigger misses the next execution date during flow import #5463
Comments
Hello ,Can I try to work on this issue. |
Can confirm I can reproduce this on 0.19.2. |
2 customers asking for this, bumped to P0 — @Ben8t can you validate the solution with Ludo and assign some resources to make sure this will be part of 0.20? |
Hey @yuri1969, I didn't successfully reproduce your issue, but I may have a fix for it. Our trigger comparison was wrong, and when a trigger is considered edited, we re-create it, setting its next execution date to null Once it merged, have you the capability to try your reproducer on the develop image ? |
@Skraye I've attempted to replicate the issue on develop. I couldn't replicate it in over 15 attempts. Maybe @johnkm516 can confirm my findings. |
I think it's been fixed sometime between 0.19.2 and 0.19.10. I don't know if this is relevant, or if #6018 fixes this issue. But triggers seem to take a long time to react to flow changes when a lot of changes are made at once. For example, if I delete 10 flows with triggers, it'll still show in the Administration / Triggers page, but with the enable / disable UI replaced with "this flow no longer exists" icon. It'll take upwards of 20~30 minutes for the triggers to update. For deleted flows this is fine, but the problem is when importing 10+ flows. After importing flows, if you go to the Administration / Triggers page, the triggers either won't exist, or it'll exist but the enable / disable switch won't exist and the trigger won't trigger. Again this takes up to 20-30 minutes to update for 10 flows or so. |
Totally understandable, @johnkm516 we have an open issue to resolve that problem of zombie triggers #5998 It seems that the issue can be closed then. Thanks so much for the report and all the follow-up discussions, Jiri and John. |
Describe the issue
We have encountered a rather interesting scheduler behavior during regular operation.
TL;DR
The scheduler does not trigger an execution when the scheduler flow definition gets upgraded via the
flow namespace update
CLI command issued at the time of the execution.Description
It seems the trigger scheduler gets interrupted by a deployment of new flows. In our environment there are multiple flow definition deployments happening daily via CI/CI using the
flow namespace update
CLI command.It is rather unacceptable to miss triggers scheduled to run daily or even weekly in production.
Example
Output of import CLI command issued at 09:53:59,111:
Execution history of one of the imported flows is missing the execution which would be triggered at 09:54:
Reproduction steps
First of all, the reproduction rate not 100% since it relies on timing.
flow_imports
flow_imports/myflow.yaml
flow_imports/myflow.yaml
file:./kestra server local
./kestra flow namespace update 'company.team' '<path_to>/flow_imports'
CLI commandEnvironment
The text was updated successfully, but these errors were encountered: