Select to view content in your preferred language

Get Messages from Geoprocessing job.

1562
1
Jump to solution
01-04-2012 11:53 AM
LewLadd
Deactivated User
Hi Guys,
   I have a long running Geoprocessor task based on Python code on the server. I am starting the service with :
 var gp = new esri.tasks.Geoprocessor(url);
 gp.submitJob(inParams, function(completeStatus){...}, function(updateStatus){...}, function(failedStatus){...})


I was hoping to receive intermediate messages from the server in the updateStatus argument of the 2nd callback function passed in the submitJob(). That callback does get called many times while the job is executing but the status.messages.description only contain a generic "Executing". Not the custom messages I intended to be sending by adding
arcpy.AddMessage("....") 

within my Python code.

What is the correct way to receive intermediate messages from a Python base Geoprocessing service?

Thanks,
Lew.
0 Kudos
1 Solution

Accepted Solutions
LewLadd
Deactivated User
Hi Guys,
   I solved the problem.

   I hadn't checked the "Show Messages" checkbox on the Parameters tab in the ArcGIS Server Manager when defining the geoprocessing service. I went back to edit the service and checked that checkbox and voila, messages are now available in the updatestatus callback.

Thanks,
Lew.

View solution in original post

1 Reply
LewLadd
Deactivated User
Hi Guys,
   I solved the problem.

   I hadn't checked the "Show Messages" checkbox on the Parameters tab in the ArcGIS Server Manager when defining the geoprocessing service. I went back to edit the service and checked that checkbox and voila, messages are now available in the updatestatus callback.

Thanks,
Lew.