简体   繁体   中英

Azure - Schedule Webjob programmatically

I want to create a web app with node.js where users can schedule tasks that are executed on a specific time entered by the user.

I was thinking to use azure-webjobs or azure-functions for executing said tasks. I understand that scheduling in the azure portal is possible, however I couldn't find an API to schedule a webjob or function programmatically (for example using the Azure REST API).

Is it possible to schedule a azure-webjob or azure-function programmatically?

Azure WebJobs provide a more or less hidden API inside of KUDU called WebJobs API. This API is REST based webservice and it can be used to manage your jobs programmatically.

There are API endpoints available for the Azure WebJob which will be used for triggering the WebJob.

See the following documentation link for details on the list of available endpoints: https://github.com/projectkudu/kudu/wiki/WebJobs-API

Check this article: How to manage Azure WebJobs programmatically?

Also see this article might be helpful.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM