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?
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?
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.
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.
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.
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.