-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Some cron job triggered appear to be running indefinitely #1704
Comments
There is a job that cancel long running executions if a job is running for more than 6 hours here: terrakube/api/src/main/java/org/terrakube/api/plugin/scheduler/inactive/InactiveJobs.java Line 48 in 8fc8d68
Check the logs maybe you can find something related. |
Hi ! I think I found something that might be related! After digging into the db I realized that some were kind of corrupted and prevented terrakube from processing some jobs and even made some crash. Sometimes (Idk the exact reason) the field
After deleting all rows in relation
and running
The problem seem to be solved and we no longer have that error ! Don't know if it can help ! At least referencing my issue for others if they encounter it ! :) |
I think the correct script should be for Script 1
Script 2
|
Strangely, when I took a look at workspace_id they seemed to have a value ! However, terraformPlan was empty so I went for this column ! |
Bug description 🐞
This is probably an obscur bug but sometimes when a cronjob is triggered it seems to be running indefinitely and never stop
Lemme know if you need any more infos !
Steps to reproduce
I'll have to apologize but I can't provide any step to reproduce as to me it seems very random as you can see from screens above.
Expected behavior
Should stop at some point.
Example repository
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: