I have a flex application that runs a python script (via submitJob).
For the most part, it works fine. But there are a few cases were it doesn't work. I think it has something to do with the scratch workspace and/or how long certain selected points take to run. Here is the message I get:
Execution of job <big long alpha numeric directory> failed because of crash or termination of the server object
I have tried: 1) Running the python script without having any scratch workspaces. Just run it in a local directory. Works fine.
2) Run the python script using the scratch workspaces for output files (i.e., %scratchworkspace%...) - Sometimes works, sometimes doesn't. It's designed to run from ArcGIS Server, so I'm not too worried here.
3) Run the geoprocessing from ArcGIS Server. Sometimes it works, but sometimes it doesn't.
4) Run from the Flex application. For a list of selected points, it does not work. But it works for other points.
I have also tried several other things, but the results seems to be a little hit and miss.