I am looking for a way to access a GP tool running in a Python script to be able to see how much of the job has already been done.
I have found SetProgressor function, but this one is available only when running script tools via ArcGIS Desktop GUI. I am in contrary interested in obtaining the information on the progress via the code. This is to be able to track on the execution of the tool (this will be reported to a user which has triggered running the code). I don't run the code inside the ArcGIS Desktop application session.
So, for instance, when calling the Buffer GP tool on a polygon feature class (via arcpy.analysis.Buffer
), I want to get an estimate from the tool after several seconds how much (in %) of the work was already done and this information should be possible access via the code.
Answer
You can't get this information as the Python script will block until the tool has finished running.
No comments:
Post a Comment