<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcGIS Pro - Python toolbox tools take a long time to run in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186861#M8274</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have identified what caused this behavior and will be submitting a bug report to ESRI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There seems to be an issue with setting arcpy.env.addOutputsToMap to False in a python script tool.&amp;nbsp; If that line is run in the python tool, tools will not complete after the script finishes.&amp;nbsp; This behavior will persist for all geoprocessing script tools (and possibly normal gp tools) for the rest of the session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Removing this line from all python toolboxes in the project and re-opening the project resolves the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Dec 2015 14:46:13 GMT</pubDate>
    <dc:creator>JeremyBracone</dc:creator>
    <dc:date>2015-12-09T14:46:13Z</dc:date>
    <item>
      <title>ArcGIS Pro - Python toolbox tools take a long time to run</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186851#M8264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Geoprocessing python tools from a python toolbox take a long time to start and then remain in the "Updating" phase after finishing for a long time (more than an hour).&amp;nbsp; Even a default tool that does nothing takes a long time to run and remains in the "updating" state, sometimes not even finishing.&amp;nbsp; I am running ArcGIS Pro 1.1 and am wondering what the problem might be.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This same python tool runs fine from ArcMap and also runs fine as a stand-alone script using the Python 3 interpreter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have had this same problem on multiple computers and had made ArcGIS Pro useless to me for running python tools.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 20:12:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186851#M8264</guid>
      <dc:creator>JeremyBracone</dc:creator>
      <dc:date>2015-12-08T20:12:59Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro - Python toolbox tools take a long time to run</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186852#M8265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't had this issue when&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;using a local install and a single use license&lt;/LI&gt;&lt;LI&gt;running with source and destination data on local machines&lt;/LI&gt;&lt;LI&gt;I manually updated python 2.7.x script to 3.4.x&lt;/LI&gt;&lt;LI&gt;I used a conventional toolbox &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Not much help, but no speed issues in those circumstances, so at least you have the opportunity to narrow down the culprit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 20:18:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186852#M8265</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-12-08T20:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro - Python toolbox tools take a long time to run</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186853#M8266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you use the same Desktop python script in Pro?&amp;nbsp; Or did you need to make some tweaks to deal with the python version difference?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 20:19:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186853#M8266</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2015-12-08T20:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro - Python toolbox tools take a long time to run</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186854#M8267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This was exactly the same python tool from a python toolbox in both versions.&amp;nbsp; There was nothing that wasn't Python 3 compatible in the original python tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I make a new python toolbox in Pro and run the default tool without any edits, parameters, or real code to run, I get the same behavior where it gets stuck after it completes and the geoprocessing dialog perpetually says "Updating...".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this problem with a default script tool in a conventional toolbox and with python toolboxes.&amp;nbsp; The tool messages state that it completed...ArcPro seems to not to realize it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 20:28:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186854#M8267</guid>
      <dc:creator>JeremyBracone</dc:creator>
      <dc:date>2015-12-08T20:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro - Python toolbox tools take a long time to run</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186855#M8268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you need to open a support incident&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 20:30:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186855#M8268</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2015-12-08T20:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro - Python toolbox tools take a long time to run</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186856#M8269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so that leaves your installation from my list.&amp;nbsp; Does the same behaviour appear if logged in to your machine as a different user?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 20:44:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186856#M8269</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-12-08T20:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro - Python toolbox tools take a long time to run</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186857#M8270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Logging in as a different user is my next test step.&amp;nbsp; I have a colleague who has no issues running gp tools on their machine and will be testing their login on mine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there account settings an admin can set that affects a user's ability to use custom geoprocessing tools?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 21:03:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186857#M8270</guid>
      <dc:creator>JeremyBracone</dc:creator>
      <dc:date>2015-12-08T21:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro - Python toolbox tools take a long time to run</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186858#M8271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am the admin on my own machine so I wouldn't know since I don't let anyone else use my machine.&amp;nbsp; If you aren't the admin, then you would have to check with them.&amp;nbsp; You can reset your application profile as a last resort...after backing up 'stuff'&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/docs/DOC-2121"&gt;Resetting your ArcGIS application profile&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 21:19:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186858#M8271</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-12-08T21:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro - Python toolbox tools take a long time to run</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186859#M8272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem seems isolated to my machines.&amp;nbsp; I guess this means I might need to try resetting my application profile and as a last resort, reinstalling ArcGIS Pro to try to resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for everyone that provided feedback.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 21:34:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186859#M8272</guid>
      <dc:creator>JeremyBracone</dc:creator>
      <dc:date>2015-12-08T21:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro - Python toolbox tools take a long time to run</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186860#M8273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, from the WAG department, go to the backstage and set Options&amp;gt;Geoprocessing 'Analyze script and model tools for ArcGIS Pro compatibility' to off.&amp;nbsp; I have achieved faster startup times with this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2015 21:51:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186860#M8273</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2015-12-08T21:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro - Python toolbox tools take a long time to run</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186861#M8274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have identified what caused this behavior and will be submitting a bug report to ESRI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There seems to be an issue with setting arcpy.env.addOutputsToMap to False in a python script tool.&amp;nbsp; If that line is run in the python tool, tools will not complete after the script finishes.&amp;nbsp; This behavior will persist for all geoprocessing script tools (and possibly normal gp tools) for the rest of the session.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Removing this line from all python toolboxes in the project and re-opening the project resolves the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 14:46:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186861#M8274</guid>
      <dc:creator>JeremyBracone</dc:creator>
      <dc:date>2015-12-09T14:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro - Python toolbox tools take a long time to run</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186862#M8275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for this tip.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Dec 2015 14:50:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/186862#M8275</guid>
      <dc:creator>JeremyBracone</dc:creator>
      <dc:date>2015-12-09T14:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Pro - Python toolbox tools take a long time to run</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/1315594#M71764</link>
      <description>&lt;P&gt;This is an older post, but I am having this issue with scripts that I run as Toolboxes. I am NOT using the&amp;nbsp;&lt;SPAN&gt;arcpy.env.addOutputsToMap env at all.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have a module that outputs time results for several tools and functions. The same tool in Arc, using only basic Python and arcpy modules, can take 2-5 times longer to run than when run from outside Arc on the same datasets.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The scripts themselves are around 1000 lines of code and contain multiple functions within one main class, as well as the "stopwatch" class and also, one "static tools" class that I use as a sort-of basic conversion calculator (get specs for a Feature Dataset; get needed standard spatial references; convert text to Bool; create a layer in-memory, etc).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What I am looking for, more than anything, is any advice or feedback that would tell me things like:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Does the length of a sub-functions code matter when maximizing Toolbox performance?&lt;UL&gt;&lt;LI&gt;e.g. is it better to split larger functions into smaller ones, or vice-versa?&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Are there penalties for storing things in-memory (assuming we have plenty?)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Please, do not offer things like, "store your stuff locally." I know about this. All of these test scripts are running on a Threadripper + 3080, which has access to a dedicated write-drive and reads from an nvme RAID10 array.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 16:15:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-python-toolbox-tools-take-a-long-time/m-p/1315594#M71764</guid>
      <dc:creator>KevinGabelman</dc:creator>
      <dc:date>2023-08-04T16:15:36Z</dc:date>
    </item>
  </channel>
</rss>

