Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update scheduled time for azure webjob programmatically

Is there a way to change the scheduled time for a webjob from within an MVC application or is the only way through the azure portal. I do not mean the initial schedule times, but after deployment change the scheduled time via UI in the Mvc application.

like image 842
Danny De Boiserie Avatar asked Oct 31 '22 10:10

Danny De Boiserie


1 Answers

You can always access the WebJobs in your website through the WebJobs API. You can trigger the WebJob through a manual call for Triggered Jobs. You can also upload a new zip through the API in case your schedule changes.

In order to change the schedule, you'll have to go through the portal, or redeploy the WebJob with the new schedule. You can obviously do this via Visual Studio or using the API.

There's more information on WebJobs here.

Hope this helps.

like image 125
lopezbertoni Avatar answered Jan 04 '23 15:01

lopezbertoni