GeoProcessing Task

Discussion created by CSkeete-esristaff Employee on Nov 27, 2012
Latest reply on Nov 30, 2012 by CSkeete-esristaff
I have a question regarding the geoprocessing class within the ArcGIS API for JavaScript. The question is in regard to using the clip and ship sample. We have a 23 layers we would like to clip and ship. I would like to use the cancelJobStatusUpdates function to allow the server time to clip and ship the layers. I have tried using the SetUpdateDelay function but it still times out for certain areas of the map. I would like to just add a listener to the the geoprocessing task that would wait until the jobinfo.jobstatus has changed to success. How do I successfully use the cancelJobStatusUpdates function even though I don't have my jobInfo defined until my submitJob function is started?