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

Scheduled Job failed. Thread was being aborted.

Vote:
 

Hi,

We want to run a long job to re-index large amount of pages using external search engine. The job always ends half-done with message FAILED Thread was being aborted. on the History tab.That's sad.

Is it caused by short httpRuntime/executionTimeoutsetting? Is it programmatically controllable?

Is right decision to register a job for this kind of 'manual' maintenance tasks or workflow task would have some advantages?

WBR Vlad

#44713
Oct 13, 2010 13:15
Vote:
 

Hi Vlad!

How long execution time are we talking about here?

There is no maximum execution time for a scheduled job, however as EPiServer scheduled jobs runs
within the context of the webapplication, and if it is recycled, currently running jobs could/would
eventually be aborted.

There are a number of reasons for the application to recycle, you may want to check that up.

Regards,
Johan

#44715
Oct 13, 2010 13:23
Vote:
 

There is also the difference between running the scheduled job manually or letting the scheduler start it.

If you click the "Start manually" button the job will run in the request to the server and you might get a timeout. But if you set a date and let the scheduler start the job, then it will run in a different thread and will not be subject of request timeouts.

#44722
Oct 13, 2010 14:08
Vote:
 

Thank you, I guess you right. Because it is not a periodical task we always run it with 'Start Manually' button. Now I am going to schedule and see what happen. In theory it should take about couple of hours to complete. BTW I think one additional button 'Run once ASAP' will be good UI enchancemend.

#44724
Oct 13, 2010 15:47
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.