Scheduled job timing out


I've got a scheduled job that isn't working on Episerver. I think it must be timing out as my job calls a service that gets data sent to it and if gets 3 or 4 records it is ok, but if it gets sent 1000 it's already said the job has failed before the service has finished collecting it's data.

Is there a timeout setting or something I need?

Feb 26, 2018 12:59

Hi Dave

The job itself should wait as long as its needed to run (or until the application pool recycles). Is there any way the external job can return pages of data rather than all items in one go? It could be that the request size is just too big if you are accessing the external service over HTTP then its the remote service thats timing out? 


Feb 27, 2018 0:41

So there's no time out setting as such in Episerver?  Must be something else blocking it on the network I guess if the job is taking too long to get a response back.  It seems to stop running the scheduled job after about 30 seconds, which is very low.  The service if getting a 1000 record can take a couple of minutes to return something.

Feb 27, 2018 10:00

What version are you using?

Some older versions, when you start a scheduled job manually, would run the job in the current request and that would time out in 30s with default settings.

Feb 28, 2018 14:18

We're on version 10.  I did try running it via a time instead of manually, but got the same result.  Thanks for your help anyway.

Feb 28, 2018 14:25

Do you catch and log all exceptions in your scheduled job?

We had issues where our jobs have thrown an unhandled exception that wasn't handled in our code and would be caught by episerver's caller, which would just ignore the exception and write a success message in the job log.

Feb 28, 2018 14:51
* 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.