Azure - how do I run a job that calls a function in the webservice every hour?

前端 未结 3 1315
孤独总比滥情好
孤独总比滥情好 2020-12-18 14:23

Im using Microsoft Azure and have a webservice and a SQL Azure db, I want to run a function every hour but not sure how to go about doing this? I assume it has something to

3条回答
  •  长情又很酷
    2020-12-18 15:27

    A worker role runs constantly. In your worker role, you should:

    1. Check whether or not the function has been run this hour. If so, do nothing.
    2. If function has not been executed this hour, execute function.
    3. In function, invoke web service and do your dirty work.

提交回复
热议问题