I'd like to be able to modify the Argo schedule fo...
# ask-metaflow
c
I'd like to be able to modify the Argo schedule for a flow based on the tags that the workflow is created with - is that possible? It looks like the point at which the template/cron is constructed, the tag is not applied/accessible yet.
1
s
right. The
@schedule
and tags are assigned at the same time when the workflow is deployed on Argo. You can have a wrapper script of your own that changes the
@schedule
on the fly. Here's an example how to customize the schedule.
this example changes the schedule based on branch but you could apply the same idea to tags too
e.g. define an environment variable
TAG
and then have a shell script that does
python myflow.py argo-workflows create --tag $TAG
and a custom
@myschedule
like above that defines the schedule based on the value of
TAG
c
Okay. Thanks for the suggestion 👍
👍 1