-
Notifications
You must be signed in to change notification settings - Fork 3.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
Template not found on initial creation #10899
Comments
I've had an epiphany this morning in that this is probably a race condition. So if I apply the above example it prevents the cron working due to the error mentioned. If I put the cron below the templates, it works instantly. I left it for a while and the reconciliation loop came around and checked again which eventually kicks it into action. What might be good here as an improvement to UX is an addition to the log that says "Template not found, will check again in X minutes?". I just feel that it could cause less confusion with a template not being found when the user can see it there. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is a mentoring request, please provide an update here. Thank you for your contributions. |
@drew-viles did u try create the cron after the templates? |
Yeah that worked for me. Basically it's just an error that occurs if the order of deployment is cron -> templates. If it's templates -> cron then it works fine. |
Pre-requisites
:latest
What happened/what you expected to happen?
Creating a CronWorkflow fails to find 2nd template in a sequence of steps on initial creation - more details below.
Templates should be detected on first creation and shouldn't need replacing twice.
Version
I'm using helm chart: 0.24.0 - the latest available which gives me
AppVersion: v3.4.7
Paste a small workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflows that uses private images.
I've created a
CronWorkflow
andWorkflowTemplates
as follows:And I get the following error in the log (Below)
If I then change the
test2
name inCronWorkflow
:Apply that and then switch it back to:
and apply it again.
It all works fine from that point onwards... It's a bit strange.
Logs from the workflow controller
Logs from in your workflow's wait container
N/A
The text was updated successfully, but these errors were encountered: