Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it compatible with Quartz.Net scheduler? #10

Open
joymon opened this issue Mar 27, 2023 · 0 comments
Open

Is it compatible with Quartz.Net scheduler? #10

joymon opened this issue Mar 27, 2023 · 0 comments

Comments

@joymon
Copy link

joymon commented Mar 27, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant