We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9093153 commit 0654b85Copy full SHA for 0654b85
metaflow/plugins/argo/argo_workflows.py
@@ -629,6 +629,14 @@ def _compile_workflow_template(self):
629
),
630
}
631
632
+ if self._schedule is not None:
633
+ # timezone is an optional field and json dumps on None will result in null
634
+ # hence configuring it to an empty string
635
+ if self._timezone is None:
636
+ self._timezone = ""
637
+ cron_info = {"schedule": self._schedule, "tz": self._timezone}
638
+ annotations.update({"metaflow/cron": json.dumps(cron_info)})
639
+
640
if self.parameters:
641
annotations.update({"metaflow/parameters": json.dumps(self.parameters)})
642
0 commit comments