November Happy Hour will be moved to Thursday December 5th.

running jobs asynchronously

Vote:
 

I have a job that may potentially be running for a long time. To simulate that, for now I put Thread.Sleep(100000); in code of my EPiServer job. When I start the job manually the whole user session freezes. Is this a bug or a feature? Can it be changed/worked around?

#60178
Jul 24, 2012 9:19
Vote:
 

This happens only if your job is implemented as a class with static Execute method and you start it manually. If a job is started by the scheduler it will use a separate thread. If job is implemented as a class inherited from EPiServer.BaseLibrary.Scheduling.JobBase it will always use a separate thread for manual or scheduled start.

#60196
Jul 24, 2012 15:36
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* 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.