-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Describe the bug
When an expression triggers "every 30 secs" created for Quartz.Net using the below code, QuartzNet throws an exception that the day of the week is between 1-7
Before going further just checking the expressions generated are compatible with Quartz.Net scheduler.
To Reproduce
var cronBuilder = new CronBuilder(allowSeconds:true);
cronBuilder
.Add(CronTimeSections.Seconds,30);
cronBuilder.Add(CronTimeSections.DayWeek,0,6);
string cronExpression = cronBuilder.Value;
ITrigger trigger = TriggerBuilder.Create()
.WithIdentity("ThirtySecondsJob")
.StartNow()
.WithCronSchedule(cronExpression, x => x.WithMisfireHandlingInstructionFireAndProceed())
.Build();
Expected behavior
Expecting below value. But it shows differently.
Expected - 0/30 * * ? * *
Actual - "30 * * * * 0-6"
Description - At 12:00:30 AM, only on Sunday-Saturday
Desktop (please complete the following information):
- OS: Windows 10
- Browser - N/A
- Version - 1.21.6.1116
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
No labels