cpiock
cpiock

Reputation: 1304

Azure Functions Schedule Timer

It is possible that on Azure functions beta the timer has a bug or did I something wrong?

My cron timer in the application settings was this:

59 23 * * * * 

and the last run was on 2018-02-21T17:23:59.0307645+00:00

How should I set the cron timer if I want to have every day at 23:59?

Upvotes: 1

Views: 779

Answers (2)

David Ebbo
David Ebbo

Reputation: 43203

The expression you currently have (59 23 * * * *) means "every hour at 23 minutes and 59 seconds). What you need to use instead is 0 59 23 * * *. Note that by default, this will be treated as UTC time.

Be aware that CRON expressions have lots of dialects, and I don't think the other answer will work. My answer is specifically for Azure Functions, which uses ncrontab (the flavor of it that supports the 'seconds' field).

Upvotes: 5

Ann
Ann

Reputation: 21

Everyday at 23:59: 0 59 23 1/1 * ? *

Source

Upvotes: 0

Related Questions