I'm working a geoprocessing service for ArcGIS 10.1+ written in Python / arcpy.
It runs fine in asynchronous mode, but does not write output to disk when switched to synchronous. I know that synchronous services are supposed to use the arcgisoutput directory, but nothing appears there, or output is deleted before the client can request it.
In forming the output path, I use the arcpy.env.scratchWorkspace variable, which is set to the jobs directory in both async and sync.
What can explain this instability in an ArcGIS Server geoprocessing service when running synchronously?
Thanks in advance