Bolton-and-Menk-GIS / restapi

Python API designed to work externally with ArcGIS REST Services to query and extract data, and view service properties. Uses arcpy for some functions if available, otherwise uses open source alternatives to interact with the ArcGIS REST API. Also includes a subpackage for administering ArcGIS Server Sites.
GNU General Public License v2.0
93 stars 31 forks source link

Allow GPTask.run() to work with async services #24 #25

Closed philnagel closed 5 years ago

philnagel commented 5 years ago

When dealing with an async GP service, new logic will grab the job result based on the job ID. The results will still be empty, since the task is still processing at the time the call is made. Previously, the run() method would fail on async services, since no result key was in the result at all.