Skip to content

trigger for "at scheduler startup" #980

Answered by lahma
philsayersCDS asked this question in General
Discussion options

You must be logged in to vote

Quartznet comes with the SimpleTrigger and CronTrigger "in the box".

And there are two more when you have latest version IDailyTimeIntervalTrigger and ICalendarIntervalTrigger .

I don't think that you need listeners at all. I'd suggest that when you build your main scheduler just call:

IScheduler.TriggerJob(JobKey jobKey)

This will create a run-once simple trigger under the hood and run it as soon as possible.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@philsayersCDS
Comment options

@lahma
Comment options

Answer selected by philsayersCDS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants