<?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: Publishing geoprocessing service takes forever in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-takes-forver/m-p/144617#M5660</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I solved this by removing all references to my PYTHONPATH variables in Environment Variables--&amp;gt;System Variables (?) . The service isnow created in 10 seconds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure how python is being "found" without any of these variables being set but python is working using IDLE,&amp;nbsp; PyScripter,&amp;nbsp; and within ArcGIS.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Dec 2013 12:19:08 GMT</pubDate>
    <dc:creator>ShawnCarson</dc:creator>
    <dc:date>2013-12-30T12:19:08Z</dc:date>
    <item>
      <title>Publishing geoprocessing service takes forver</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-takes-forver/m-p/144614#M5657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here is an odd one. I am trying to publish a geoprocessing service (a python script). It published without issues last week. Lately however when I try and re-publish, it takes over 30 minutes to publish. After much digging around I found the slowness&amp;nbsp; to be attributed to the following two lines at the top of my python script:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;**************&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import os&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;import uuid&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;**************&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In test cases I remove these lines and the service publishes in 5 seconds. When I include these lines it takes 30 minutes...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The script in toolbox always runs fast, its just when I try and publish as a service is when it gets slow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't know what I did (if anything) to cause this slowness. I even re-installed Desktop and Server and its still slow when I use the above import statements.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know of anything I can do&amp;nbsp; to get the service to find the libraries quickly when publishing teh service?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I can set the path to these libraries explicitly so the service isn't&amp;nbsp; looking around forever? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any ideas.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shawn&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 20:38:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-takes-forver/m-p/144614#M5657</guid>
      <dc:creator>ShawnCarson</dc:creator>
      <dc:date>2013-12-27T20:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing geoprocessing service takes forver</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-takes-forver/m-p/144615#M5658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Interesting.&amp;nbsp; You might first try adding each of those two lines separately and re-attempting service publishing to see if it's one of them specifically that's causing issues or if it's both of them.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Dec 2013 20:41:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-takes-forver/m-p/144615#M5658</guid>
      <dc:creator>WilliamCraft</dc:creator>
      <dc:date>2013-12-27T20:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing geoprocessing service takes forver</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-takes-forver/m-p/144616#M5659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Good test. Thanks for the suggestion. I did that and either library causes the issue. Importing&amp;nbsp; arcpy by itself creates the service quickly. I think it must be something to do with any python libraries, earlier I was having issues with running python in ArcGIS so I set my environment variables which fixed that issue but may have causes this new problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 11:14:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-takes-forver/m-p/144616#M5659</guid>
      <dc:creator>ShawnCarson</dc:creator>
      <dc:date>2013-12-30T11:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing geoprocessing service takes forever</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-takes-forver/m-p/144617#M5660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I solved this by removing all references to my PYTHONPATH variables in Environment Variables--&amp;gt;System Variables (?) . The service isnow created in 10 seconds.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not sure how python is being "found" without any of these variables being set but python is working using IDLE,&amp;nbsp; PyScripter,&amp;nbsp; and within ArcGIS.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Dec 2013 12:19:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-takes-forver/m-p/144617#M5660</guid>
      <dc:creator>ShawnCarson</dc:creator>
      <dc:date>2013-12-30T12:19:08Z</dc:date>
    </item>
  </channel>
</rss>

