我们是否可以在Microsoft Azure的单个Web作业中有多个计划? 我们有一定的功能,特别的时间内一个单一的作业 即多个计划,所以我们已经通过定时器试图发生,但我需要知道的是有你Azure WebJobs计划程序
0
A
回答
0
可以使用TimerTriggerAttribute:请参阅https://github.com/Azure/azure-webjobs-sdk-extensions#timertrigger
// Triggered every hours
public static void HourlyTimerJob([TimerTrigger("00:01:00")] TimerInfo timerInfo, TextWriter log)
{
log.WriteLine("Your first scheduled job!");
}
// Triggered every 15 minutes
public static void MinutelyTimerJob([TimerTrigger("00:00:15")] TimerInfo timerInfo, TextWriter log)
{
log.WriteLine("Your second scheduled job!");
}
+0
是的,我已经使用了定时器触发属性及其工作感谢您的建议。但如果可能的话,单个webjob或其他选项上的多个时间表上的任何信息。 – Inayat
0
您可以随时使用cron表达式为网络的任何其他option.Thank工作,例如让它在特定时间运行。你可以参考这个official doc。
相关问题
- 1. Windows Azure HPC计划程序
- 2. Azure webjobs计划基于何时关闭主机?
- 3. Azure WebJobs和线程安全
- 4. Azure WebJobs睡眠
- 5. Azure Webjobs历史
- 6. Azure WebJobs SDK ErrorTrigger
- 7. Azure WebJobs vs DataFactory
- 8. Azure WebJobs和Azure SQL Server?
- 9. .NET核心Azure的WebJobs不从Azure应用程序设置
- 10. 计划程序
- 11. Azure Web App计划
- 12. Azure服务计划计费
- 13. Azure WebJobs TimerTrigger不触发
- 14. azure-webjobs-sdk-extensions vs triggered Webjob
- 15. 如何扩展Azure Webjobs
- 16. Azure WebJobs中的错误
- 17. ASP.NET 5中的Azure WebJobs
- 18. Azure Webjobs和Bitbucket部署
- 19. Azure WebJobs和部署槽
- 20. Azure网站上的Azure WebJobs中的PHP
- 21. 麻烦在Azure上使用API应用程序发布WebJobs
- 22. 从Django/python web应用程序创建Azure webjobs
- 23. Microsoft Azure服务计划
- 24. Windows Azure |足迹计划
- 25. Azure应用服务计划
- 26. Azure网站 - 计划任务
- 27. Azure应用程序服务计划硬件故障
- 28. 微软Azure Web应用程序部署计划
- 29. 从计划程序中填充Azure移动服务
- 30. Azure应用程序服务计划(基本小)限制?
我担心的是,我们可以有一个单一的网络工作sir.The以上建议多个计划是有帮助。 – Inayat