Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add Quartz.net job without starting the scheduler

Is there any way of adding jobs to Quartz.Net jobstore without starting up a scheduler instance?

like image 267
Henrik Gering Avatar asked Oct 25 '25 03:10

Henrik Gering


1 Answers

For creating a managing instance (a scheduler that is used just for job and trigger configuration, like web) you can change your thread pool to ZeroSizeThreadPool that allows you to start scheduler without the fear of it actually running any jobs.

You should always use the scheduler interface instead of direct database access.

like image 122
Marko Lahma Avatar answered Oct 27 '25 19:10

Marko Lahma



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!