Cancel a python geoprocessing

769
3
07-15-2014 02:14 AM
arnaudferrand
New Contributor II

Hi,

is there any hidden stuff to treat a user cancel during a geoprocessing ?

In arcObject there is ITrackCancel interface; but with python when the geoprocessing is cancelled by user, the processing is ending and is then not cancelled.

Is there anyhing available with pyhton ?

Thanks for your help

Tags (2)
0 Kudos
3 Replies
DanPatterson_Retired
MVP Emeritus

Can you describe what you are doing and what isn't happening in detail?

0 Kudos
arnaudferrand
New Contributor II

Hi Dan,

I have a geoprocesing publish as a service on an arcgis server site.

I would like to be able to catch the user cancel message in the geoprocessing.

It seems that the geoprocessing is ending and is not cancelled. The final status is cancel completed, but only when the geoprocessing ends. The geoprocessing is not interrupted. And that 's what I want to know: with a python geoprocesing, is it possible to handle the user cancelation.

Arno

0 Kudos
DanPatterson_Retired
MVP Emeritus

You should move this to the appropriate section of the forum, it is languishing in the middle of nowhere right now

0 Kudos