How to schedule python web jobs on azure

元气小坏坏 提交于 2019-12-11 19:48:33

问题


I have python project which has main python file start.py and run.cmd. run.cmd file contains the path of the python on azure web app which is below:

D:\home\Python364x64\python.exe start.py

I created a webjob on azure and with type as Triggered and triggers as schedule. Cron expression I set is 0 */5 * * * * so that it runs every 5 mins for testing purpose. It was getting executed every 5 mins.

Now I have change the cron expression to 0 0 1 * * * so that it runs every 1AM but the problem is it is not getting executed and the logs always says never ran. Can anyone please correct me if I have set the wrong cron expression because for every 5mins it was working but for every 1AM daily its not working. Please help. Thanks

来源:https://stackoverflow.com/questions/52528426/how-to-schedule-python-web-jobs-on-azure

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!