Coder Social home page Coder Social logo

cwinland / cron.core Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 2.0 1.78 MB

Cron Builder object that can be used to build Cron expressions, describe Cron expressions, and manipulate cron expressions..

License: MIT License

C# 100.00%
cron-expression cron-builder cron cron-parser dayweek hours minutes seconds days years

cron.core's Introduction

Hi there ๐Ÿ‘‹

Github Linkedin NuGet

I'm a 25+ years software developer and consultant. About half of that time is with Microsoft.

Solving problems and challenges with code is my passion. Before now, I never published any work, so please keep a look out for new and exciting things.

Technologies: Azure, Sql Server (and other databases), SharePoint, .NET, Blazor, Angular.

Languages: C#, T-SQL, JavaScript, and many more.

Please let me know if you have any ideas!

In my free time, I'm also a sound engineer and producer. My wife is a professional singer, songwriter, and producer: https://youtube.com/playlist?list=PLtHb7y9Z3TYoc5VUhfp1KJjpozVjyiKce

Together we rule our world!

๐Ÿ“ซ How to reach me: https://www.linkedin.com/in/christopherwinland

cron.core's People

Contributors

cwinland avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cron.core's Issues

Is it compatible with Quartz.Net scheduler?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.