简体   繁体   English

在PHP中从Azure WebSite运行Azure WebJob

[英]Run Azure WebJob from Azure WebSite in PHP

I have a web site in azure running in php and a webjob also running in php. 我有一个在php中运行的azure网站和一个也在php中运行的webjob。

To run my webjob, i have to login into azure portal and click on "run webjob". 要运行我的webjob,我必须登录到azure门户并单击“运行webjob”。 (By the time, i want it to be on demand and not scheduled) (根据时间,我希望它可以按需而不是按计划进行)

Does anyone know how to run my webjob from my website?? 有人知道如何从我的网站运行我的webjob吗?

Thanks in advance! 提前致谢!

The typical pattern is for the website to send a message in a queue that will be picked up by the WebJob. 典型的模式是网站在队列中发送消息,该消息将由WebJob接收。

If your new to Azure Queues, check this "How to use the Queue service from PHP" from the Azure documentation: http://azure.microsoft.com/en-us/documentation/articles/storage-php-how-to-use-queues/ 如果您是Azure队列的新手,请从Azure文档中检查此“如何从PHP使用队列服务”: http : //azure.microsoft.com/zh-cn/documentation/articles/storage-php-how-to-使用队列/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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