cwinland / cron.core Goto Github PK
View Code? Open in Web Editor NEWCron Builder object that can be used to build Cron expressions, describe Cron expressions, and manipulate cron expressions..
License: MIT License
Cron Builder object that can be used to build Cron expressions, describe Cron expressions, and manipulate cron expressions..
License: MIT License
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):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.