Hi all, What is the syntax to schedule a flow eve...
# ask-metaflow
h
Hi all, What is the syntax to schedule a flow every N hours (e.g. N=2) in an AWS step function? There is obviously this: •
@schedule(hourly=True)
which runs the workflow every hour. (taken from the doc) but it is hourly (N=1). Might be achieved by a specific “cron job pattern”? Thanks! PS: Maybe this is it?
@schedule(cron='0 */2 * * *')
actually the above throws an error but this may work:
@schedule(cron='0 0/2 * * ? *')
1
s
yep! the later should work
👍 1