You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This does not prevent the workflow from being scheduled, as expected. Instead, it regularly schedules the workflows, but the workflow itself is suspended and stays running forever.
Expected behavior
As far as i can tell from the docs (and from clicking the suspend checkbox inside Workflows), it should generate
to exactly produce the above yaml. With the caveat, that if you did want the suspend inside workflowSpec, this makes that impossible, for whatever that's worth...
Im happy to supply a PR if this makes sense?
The text was updated successfully, but these errors were encountered:
for what it's worth, I ran into the relative complexity caused by CronWorkflow subclassing Workflow in #942.
imo, while subclassing Workflow for the DRYness of its fields is convenient, the complexity added downstream ends up being more confusing due to fields like this.
It's perhaps beyond the scope of this specific bug report, but it might be better to construct a mixin that lets them both share the methods that are mutually applicable, while redefining the actual attributes on CronWorkflow and properly assigning the spec path, so that the build method doesn't need to pretend it's a workflow and individually handle the colliding attributes.
Pre-bug-report checklist
1. This bug can be reproduced using pure Argo YAML
If yes, it is more likely to be an Argo bug unrelated to Hera. Please double check before submitting an issue to Hera.
2. This bug occurs in Hera when...
Bug report
Describe the bug
Generates:
This does not prevent the workflow from being scheduled, as expected. Instead, it regularly schedules the workflows, but the workflow itself is suspended and stays running forever.
Expected behavior
As far as i can tell from the docs (and from clicking the suspend checkbox inside Workflows), it should generate
Environment
As far as I can tell, this stems from https://github.com/argoproj-labs/hera/blob/main/src/hera/workflows/cron_workflow.py#L153 not special casing the
suspend
field, like it does the schedule field.It seems like it could be fixed by something alike:
to exactly produce the above yaml. With the caveat, that if you did want the
suspend
insideworkflowSpec
, this makes that impossible, for whatever that's worth...Im happy to supply a PR if this makes sense?
The text was updated successfully, but these errors were encountered: