AleksG
AleksG

Reputation: 370

How to trigger Quartz.NET job multiple times per second

I'm currently using cron triggers to trigger job. The smallest granularity is 1 second, so it seems that I can at most trigger this job once every second.

Is it possible to trigger the job more often than once every second? If so, how would I go about it?

Multiple schedules for the job, each with an every-second-trigger?

Upvotes: 0

Views: 321

Answers (1)

Marko Lahma
Marko Lahma

Reputation: 6884

Just change to SimpleTrigger which allows you to configure interval in milliseconds. Cron trigger isn't ideal for such scheduling, it has more overhead than needed when you want to go sub-second.

Upvotes: 1

Related Questions