I don't see a JobCanceled in the JobStatus enumeration.
When I call Cancel on a GpJob, the next status update status says failed.
Is there some way to verify that it's been canceled - and not failed?
BTW, the REST API Jobstatus has "esriJobCanceled" along with some others that aren't in the .NET SDK...
Solved! Go to Solution.
Kirk,
The `Job` in this case represents a Runtime Job which handles specific runs of the Task instance. It's a common framework for Runtime Tasks. For Geoprocessing the Job can be either:
- Synchronous "execute"
- Asynchronous "submit job"
Only the server-side "submit job" type provides a job ID and the status list you shared above. Those status values will be available in the Messages property of the GeoprocessingJob class.
Thanks
Mike
Kirk,
The `Job` in this case represents a Runtime Job which handles specific runs of the Task instance. It's a common framework for Runtime Tasks. For Geoprocessing the Job can be either:
- Synchronous "execute"
- Asynchronous "submit job"
Only the server-side "submit job" type provides a job ID and the status list you shared above. Those status values will be available in the Messages property of the GeoprocessingJob class.
Thanks
Mike
Hi Michael -
This seems to work with the LocalServer geoprocessing sample. Glad to see ArcGIS Enterprise returns the same "Job canceled" too.
Thanks!
Hey Mike,
If I cancel a sync process, does this Cancel actually 'roll back' anything that took place during the job process before the cancel? I was assuming it does.
Thanks!