Scheduled Job on startup...possible?

Vote:
 

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 ?

Thanks,
Cevin

#187055
Jan 10, 2018 19:17
Vote:
 

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

#187058
Jan 11, 2018 2:13
Vote:
 

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.

#187076
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.