CRON expression is invalid Using Hangfire 1.7.6, CronEspresso 3.0.0


#1

Hi,

I am getting CRON expression is invalid for 0 0/2 * 1/1 * ? *

When I tested it in https://www.freeformatter.com/cron-expression-generator-quartz.html
It was able to convert it correctly.

Best Regards,
Damodar


#2

Last I checked Hangfire only supports cron expressions of 5 ‘fields’. Mind you I did notice the validation rules did get a lot stricter in recent releases. For instance some funny person recently added some jobs on one of my hangfire backed apps with 10/60 * * * * … Which makes utterly no sense really but worked fine on older versions.


#3

Hi Hans_Engelen,

Thanks, any update / insight from the Hangfire team?

Best Regards,
Damodar


#4

https://github.com/HangfireIO/Hangfire/blob/master/src/Hangfire.Core/Cron.cs as @Hans_Engelen said.