Skip to content

Commit 28b7222

Browse files
author
Nissan Pow
committed
fix: revert CronWorkflow schedules back to schedule field
The schedules array field requires Argo Workflows v3.6+ and breaks older installations. Keep the singular schedule field which is supported across all versions.
1 parent 1180f0d commit 28b7222

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

metaflow/plugins/argo/argo_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def schedule_workflow_template(self, name, schedule=None, timezone=None):
325325
"metadata": {"name": name},
326326
"spec": {
327327
"suspend": schedule is None,
328-
"schedules": [schedule] if schedule is not None else [],
328+
"schedule": schedule,
329329
"timezone": timezone,
330330
"failedJobsHistoryLimit": 10000, # default is unfortunately 1
331331
"successfulJobsHistoryLimit": 10000, # default is unfortunately 3

0 commit comments

Comments
 (0)