Scheduled Job on startup...possible?


I've tried many combinations for the scheduled job properties, but cannot find a way to get a scheduled job to start on application start/restart?

I'd like to either do this via a post-init invocation or by the scheduled job properties...

Currently have:

InitialTime = "-1:0:0",
        IntervalLength = 1,
        IntervalType = ScheduledIntervalType.Days)

Anybody had a similar situation/solution ?


Jan 10, 2018 19:17

You can write IInitializableModule and trigger the scheduled job using IScheduledJobRepository. 

Jan 11, 2018 2:13

Hi @Sujit - thanks for the suggestion. I had already tried using init complete but was having problems with non async kick off using IScheduledJobExecutor. Using IScheduledJobRepository as suggested was the missing link, I was able to then able to invoke and set to start async.

Jan 11, 2018 11:49
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.