[英]Azure logic apps - Schedulers
I have a job which need to be scheduled daily at 8am, 9am and every 15min from 10am to 4pm how can I schedule this job on azure logic apps?我有一项工作需要在每天上午 8 点、上午 9 点和从上午 10 点到下午 4 点每 15 分钟安排一次,如何在 azure 逻辑应用程序上安排这项工作?
You will not be able to schedule individual time in logic app.您将无法在逻辑应用中安排单独的时间。
In order to work through your requirement:为了满足您的要求:
You could have the logic app triggered (scheduled) for every 15 minutes.您可以每 15 分钟触发(计划)一次逻辑应用。 In the logic app flow you could extract the time.在逻辑应用流程中,您可以提取时间。
formatDateTime(utcNow(),"HH:mm")
You could compare with your schedule and run the job if the conditions met.如果条件满足,您可以与您的日程安排进行比较并运行该作业。
Pseudo Logic伪逻辑
if time is 8:00 AM or if time is 9:00 AM如果时间是上午 8:00 或时间是上午 9:00
Yes , set the flag (a boolean variable) to True是的,将标志(一个 boolean 变量)设置为True
No , check if the time is between 10 AM to 4 PM不,请检查时间是否在上午 10 点到下午 4 点之间
if the flag is true run the job else, do nothing.如果标志为真,则运行其他作业,什么也不做。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.