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

Question I have about scheduling. #325

Open
Rpgdudester opened this issue Aug 29, 2022 · 1 comment
Open

Question I have about scheduling. #325

Rpgdudester opened this issue Aug 29, 2022 · 1 comment

Comments

@Rpgdudester
Copy link

Rpgdudester commented Aug 29, 2022

Hello and good morning!

I love fluentScheduler and how everything works well for what I'm using it for with scheduling certain tasks to run in c# so thanks for that!

I have 2 questions.

  1. Is this code still active and is it actively being developed?
  2. Is there a way, to schedule a method to run every weekday at say 9 AM and run every hour in that day between 9 AM and 8 PM?

This is my current code setup so far which works but I need to take it a step further and not sure how:

JobManager.AddJob(() => LabResultsEcomUpdater(1), (s) => s.ToRunOnceAt(09,00).AndEvery(1).Hours().Between(09, 00, 20, 00));

would this stop the code running after 8PM or would it start up again the next day, and how would i modify it to run every week day at 9 AM and every hour between 09 and 20 and making sure it starts up again the next day?

Thanks for the awesome code base! :)

-Joshua

@ExtraTNT
Copy link

you should be able to define it as a cron expression... https://crontab.guru/#0_8-21_*_*_1-5
was my idea, but i am stupid, so there is probably a better way to get it to the every h... at min 0 looks a bit sketchy...

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

2 participants