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 to be attributed to the following two lines at the top of my python script:
**************
import os
import uuid
**************
In test cases I remove these lines and the service publishes in 5 seconds. When I include these lines it takes 30 minutes...
The script in toolbox always runs fast, its just when I try and publish as a service is when it gets slow.
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.
Does anyone know of anything I can do to get the service to find the libraries quickly when publishing teh service?
Maybe I can set the path to these libraries explicitly so the service isn't looking around forever?
Thanks for any ideas.
Shawn