是否有任何相关的cron表达在本月的第三个工作日触发Azure函数。 :00:00pm,在最近的工作日至2月,5月,8月和11月的第三个月份”。这应该是各个月的第三天。如果第三天落在周末(周六或周日),则在最近工作日的功能。但是我在Azure
“ Microsoft.azure.webjobs.host”中运行时会遇到以下错误:错误索引方法'RevundProcessForCessForpliedfortImerTriggtigrigndignigne'。microsoft。 azure.webjobs.extensions:时间表表达式“ 0 0 2 2,5,8,11?”未被认为是有效的cron表达式或时间板字符串。”
Is there any relevant CRON expression to trigger the azure function on the 3rd weekday of the month on specific months .I tried the cron expression "0 0 22 3W 2,5,8,11 ?"..The CRON expression indicates " At 22:00:00pm, on the nearest weekday to the 3rd of the month, in February, May, August and November" . It should be 3rd day of the respective months. If the 3rd day falls on a weekend(Saturday or Sunday) then the function on nearest weekday .But i am getting the below error When running it in Azure
"Microsoft.Azure.WebJobs.Host: Error indexing method 'RefundProcessForAppliedForTimerTriggerFunction'. Microsoft.Azure.WebJobs.Extensions: The schedule expression '0 0 22 3W 2,5,8,11 ?' was not recognized as a valid cron expression or timespan string."
发布评论
评论(1)
这是计时器触发器的cron表达式的主要文档:
https://lealen.microsoft.com/en-us/azure/azure/azure/azure/azure-functions/functions/functions-bindings-bindings-bindings-timer?tabs =进程& pivots =编程语言 - charp#ncrontab-expressions
我相信您想要这样的东西:
'0 0 22 * 2,5,8,11 3'
我读了这篇文章,在22,5,8,11个月和一周的第三天22小时。 如果我误会了星期天
,那么您只想在一个月的第三天(第三个工作日每月一次)想要一个工作日,
那么您想要这个:
我相信您想要这样的东西:
'0 0 22 1-7 2,5,8,11 3'
特定示例此处:
https://lealen.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer?tabs = in-process&pivots = progots = programming-language-csharp#ncrondab-examples < /a>
Here is the main documentation to the cron expressions for timer triggers:
https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer?tabs=in-process&pivots=programming-language-csharp#ncrontab-expressions
I believe you want something like this:
'0 0 22 * 2,5,8,11 3'
I read this as , 22 hour on the 2,5,8,11 month and 3rd day of the week.(day of the week going 0-6, believe 0 being sunday
If i'm misunderstanding and you just want the first weekday the 3rd day of the week of the month(just once a month on the third weekday)
Then you want this:
I believe you want something like this:
'0 0 22 1-7 2,5,8,11 3'
Specific examples here:
https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer?tabs=in-process&pivots=programming-language-csharp#ncrontab-examples