Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Function Job that will never executes

I am trying to populate a CRON expression that will pretend to be never executed(at least not in this life time).

I went through this SO question https://stackoverflow.com/questions/8324306/cron-job-that-will-never-execute

But each expression in that question gives an exception Microsoft.Azure.WebJobs.Host: Error indexing method 'Cleanup'. Microsoft.Azure.WebJobs.Extensions: The schedule expression '0 0 5 31 2 ?' was not recognized as a valid cron expression or timespan string.

What are the possible expressions that will fullfill the above mentioned expectation with regard to Azure Functions?

Thank you.

like image 356
Isuru Avatar asked Dec 08 '25 00:12

Isuru


1 Answers

You cannot set never per algorithm, but a leap year with Saturday 29th gives a 28-year gap.

0 0 0 29 Feb Sat

as the first time around this will happen again is 2048.

Good enough?


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!