<?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: GP toolboxes won't load for multiple processes when executed at the same time in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/gp-toolboxes-won-t-load-for-multiple-processes/m-p/546256#M42596</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are using the standard toolboxes and not a custom one that you created I typically don't load the toolboxes at all. You can just script like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcgisscripting

gp = arcgisscripting.create(9.3)

fc = r"C:\data\test.gdb\buildings\slab_area"

gp.delete_management(fc)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 23:38:45 GMT</pubDate>
    <dc:creator>NathanLebel</dc:creator>
    <dc:date>2021-12-11T23:38:45Z</dc:date>
    <item>
      <title>GP toolboxes won't load for multiple processes when executed at the same time</title>
      <link>https://community.esri.com/t5/python-questions/gp-toolboxes-won-t-load-for-multiple-processes/m-p/546255#M42595</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using Arcgis 9.3.&amp;nbsp; Our license manager is located on our network, and we have a floating ArcINFO license.&amp;nbsp; I'm doing a CPU intensive operation on hundreds of files, so I'm using the Python 2.5 backport of the multiprocessing module to run several processes concurrently to speed things up.&amp;nbsp; I've got it working except for one thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I make the child processes, they each are instructed to load the toolboxes.&amp;nbsp; Unfortunately, if I run things that simply (instantiate each process, let it load the toolbox), the toolboxes take forever to load (and may never load, but I haven't waited more than a couple of minutes).&amp;nbsp; The way I fixed it was by having the process "sleep" for variable periods of time (process one executes immediately, process two waits for 4 seconds...).&amp;nbsp; I'm guessing this is an issue with the license manager, but I'm not sure how to confirm that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone else encountered this issue?&amp;nbsp; Do you know why it is, or another way to avoid it?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2012 17:41:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/gp-toolboxes-won-t-load-for-multiple-processes/m-p/546255#M42595</guid>
      <dc:creator>danielporter1</dc:creator>
      <dc:date>2012-01-27T17:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: GP toolboxes won't load for multiple processes when executed at the same time</title>
      <link>https://community.esri.com/t5/python-questions/gp-toolboxes-won-t-load-for-multiple-processes/m-p/546256#M42596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you are using the standard toolboxes and not a custom one that you created I typically don't load the toolboxes at all. You can just script like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcgisscripting

gp = arcgisscripting.create(9.3)

fc = r"C:\data\test.gdb\buildings\slab_area"

gp.delete_management(fc)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 23:38:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/gp-toolboxes-won-t-load-for-multiple-processes/m-p/546256#M42596</guid>
      <dc:creator>NathanLebel</dc:creator>
      <dc:date>2021-12-11T23:38:45Z</dc:date>
    </item>
  </channel>
</rss>

