Schedule a workflow programatically #25960
-
Is it possible to schedule a workflow with a variable or dynamic value? I’d like to be able to set the cron for a workflow via a rest api call. I imagine using something like the following:
But of course there’s no event to provide inputs in this example. I thought maybe I could use
If you have any thoughts on setting a scheduled workflow via a rest api call, I’d love to hear them. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hi @cwgw, Glad to see you in Github Community Forum! Dynamic schedule setting is not supported, you cannot dynamically set the value. As an alternative, you can try to update the schedule setting and push to repository.
Thanks |
Beta Was this translation helpful? Give feedback.
-
Thank you for your response @weide-zhou. I’ll consider implementing your solution in my project. Cheers. |
Beta Was this translation helpful? Give feedback.
Hi @cwgw,
Glad to see you in Github Community Forum!
Dynamic schedule setting is not supported, you cannot dynamically set the value.
As an alternative, you can try to update the schedule setting and push to repository.
Two options here:
My workflow shows the cornsetting value is updated.
https://github.com/weide-zhou/schedulewf1/runs/868756211?check_suite_focus=true#step:5:9
Thanks