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
Sensor trigger execution order #3075
Comments
This issue has been automatically marked as stale because it has not had |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi folks, I'm troubleshooting an issue that I've come across with Sensors. In our trigger, we sequentially call for the creation of several k8s workflow templates. Finally, we create and run a k8s workflow that relies on the previous templates.
Sensor Yaml
The issue that arises is when the Sensor is called for the first time, we get the following error from the workflow:
"invalid spec: templates.create.tasks.test-preflight template reference tests.preflight-tests not found"
In this case, the workflow couldn't find a reference from our wtf-tests template (created within the trigger). When I call the sensor a second time, the workflow is able to complete without issue.
I recreated the scenario several times and occasionally the workflow will complete successfully on the first call. Most times, however, a second call is needed. This leads me to believe that the entries in the trigger section either aren't called sequentially, or do not wait for the previous steps to complete. I guess what I'm trying to figure out is if this is the intended behavior or a possible bug?
Environment:
Message from the maintainers:
If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.
The text was updated successfully, but these errors were encountered: