Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What time am I dealing with in Quartz.net?

Tags:

quartz.net

I am wondering when I set something like this

  Trigger trigger = TriggerUtils.MakeDailyTrigger("abc", 5, 00);

I am setting it for 5:00am. Is this 5:00am server time or UTC time?

like image 359
chobo2 Avatar asked Sep 20 '11 20:09

chobo2


People also ask

How many jobs can Quartz handle?

The actual number of jobs that can be running at any moment in time is limited by the size of the thread pool. If there are five threads in the pool, no more than five jobs can run at a time.

How Quartz net works?

Quartz is distributed as a small dynamically linked library (. dll file) that contains all of the core Quartz functionality. The main interface (API) to this functionality is the Scheduler interface. It provides simple operations such as scheduling/unscheduling jobs, starting/stopping/pausing the scheduler.

How do I stop a quartz scheduler in Java?

deleteJob(jobKey(<JobKey>, <JobGroup>)); This method will only interrupt/stop the job uniquely identified by the Job Key and Group within the scheduler which may have many other jobs running. scheduler. shutdown();

What is Cron expression in C#?

Cron Schedule Examples : A Cron expression is designed to specify what date and time the scheduled task must be executed. Using Cron expressions, we can specify schedules such as the following. Run every minute every one hour. Run every hour, starting from the 15-minute mark of the hour.


2 Answers

It uses UTC time, however this is not properly documented.

Edit: actually it looks like it has used both! Versions prior to 0.9 used local time, those after use UTC (source), so it should be UTC as long as you are using a recent version.

like image 81
Joseph Earl Avatar answered Sep 28 '22 07:09

Joseph Earl


5:00am UTC time. Public Quartz.NET API always expects times in UTC format. Just FYI, MakeDailyTrigger is just a shortcut to CronTrigger with following format:

string.Format("0 {0} {1} ? * *", minute, hour)
like image 41
Dmitry Avatar answered Sep 28 '22 06:09

Dmitry