Get Messages from Geoprocessing job.

Discussion created by LewLadd on Jan 4, 2012
Latest reply on Jan 5, 2012 by LewLadd
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[i].description only contain a generic "Executing". Not the custom messages I intended to be sending by adding

within my Python code.

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