Hi,
My GP service times out after approximately 10 minutes. I've increased "The maximum time a client can use a service" to 2400 seconds, but this value is not honored.
When I set the value low, I get the following error when the timeout period is met:
When I set the value to 2400 seconds after approximately 10 minutes it fails like this:
It looks like there are two different timeout settings, but I only know how to set the timeout threshold on the GP Service.
Someone experienced the same challenge as I have? And hopefully a solution for this.
Robert
Solved! Go to Solution.
Forgot to mention that is was on a ArcGIS Server 10.6
The problem went away after we installed all existing patches until this moment (I am not sure which one solved the problem.)
Hm, it is strange that you see different messages, but what is taking the longest? Can you add arcpy.AddMessage statements to see where it's hung up? I'd say the exception with java.lang.Exception is likely timing out as it makes it into the Server, while the message without it made it in, but times out when it's running. You may be seeing it timeout as it makes it in as all instances are being used, (since the ones that are running are hung), so you're seeing two separate timeouts. I'd start by adding statements to sort out where it's hung. You'll need to set the GP service to return INFO messages.
After I posted yesterday I created a new service which runs the following:
runner = 0
while runner < 30:
arcpy.AddMessage("Run {}".format(runner))
time.sleep(60)
runner += 1
And noticed the following behavior:
After approximately 10 minutes:
Job ID: j01d59f56600943ff8bb75d8cbc9445dd
Job Status: esriJobFailed
Job Messages:
But after pressing refresh I could see that the job was continuing to the end of the script:
Job ID: j01d59f56600943ff8bb75d8cbc9445dd
Job Status: esriJobFailed
Job Messages:
Job Status says failed but the last message says succeeded. I think it's a bug and will report this to Esri.
By the way, when I set the timeout to less than 10 minutes, the job is terminated after the time period.
Robert
Forgot to mention that is was on a ArcGIS Server 10.6
The problem went away after we installed all existing patches until this moment (I am not sure which one solved the problem.)
Hola,
Yo tuve el mismo problema, en mi caso tengo un ArGIS 10.6 en un MWS 2012 R2 Std.
El parche que soluciono el problema fue Parche de inicio del servicio de geoprocesamiento de ArcGIS Server