-
-
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
feat: Allow to continue template execution using "ignoreError" property #1550
feat: Allow to continue template execution using "ignoreError" property #1550
Conversation
This looks better, let me check the logic that you have changed, and I will let you know if it requires any additional change |
This is the part of the code that is parsing the YAML file The job table has a field called "tcl" that has the base64 encoded yaml that will be executed when the job is running.
This is the service that parse the yaml into a java class: terrakube/api/src/main/java/org/terrakube/api/plugin/scheduler/job/tcl/TclService.java Line 82 in a069946
When the job is running it is checking the pending steps here
Parsing the pending steps from here terrakube/api/src/main/java/org/terrakube/api/plugin/scheduler/job/tcl/TclService.java Line 111 in a069946
And it validates the pending job parts here
|
I do follow you until there |
All of those case are executing the same code:
That is a way to reuse the case with the same logic that begins in |
Okayy thank you @alfespa17 that's a Java trick ! I didn't know it ! I added the value to the ExecutorContext which should then allow the Executor code to retrieve the value, am I right ? |
I think your change should work just one small thing can you rename |
Sure! Done ! :) @alfespa17 |
Hi @alfespa17 ! Would it be possible to have a release please ? :) thanks ! :) |
You can check 2.24.0-beta.6 @BenjaminDecreusefond |
Hi @alfespa17 !
I'd like to propose this small change and add a new field to the Terrakube template. I change the Flow template in the API and added it to the Executor job.
However, I'd like your inputs about it, I think I'm missing the part where the data is transmitted from the API that parse the yaml to the Executor that use the content of the Yaml to run the Job. I tried to find it but I couldn't find the connection between the 2 components unfortunately. My guess is that the API set the job in the queue and the executor will pick'em for execute. I'm really not sure that the field
ingore_error
will be available in the Executor context. Could you explain me please ? :)Regards