<?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 Publish geoprocessing script? Schedule? in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-geoprocessing-script-schedule/m-p/147733#M5873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm fairly new to ArcGIS Server, so trying to learn and do as much as I can &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some arcpy python scripts I've written to do some data validation, and I manually run these a couple times a week...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is it possible to publish my script to ArcGIS Server and have Server run it?&lt;/LI&gt;&lt;LI&gt;If #1 will work, would it be possible to schedule the script on Server to run nightly or weekly etc.?&lt;/LI&gt;&lt;LI&gt;How? &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Aug 2014 20:38:40 GMT</pubDate>
    <dc:creator>MikeLouwrens</dc:creator>
    <dc:date>2014-08-07T20:38:40Z</dc:date>
    <item>
      <title>Publish geoprocessing script? Schedule?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-geoprocessing-script-schedule/m-p/147733#M5873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm fairly new to ArcGIS Server, so trying to learn and do as much as I can &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have some arcpy python scripts I've written to do some data validation, and I manually run these a couple times a week...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Is it possible to publish my script to ArcGIS Server and have Server run it?&lt;/LI&gt;&lt;LI&gt;If #1 will work, would it be possible to schedule the script on Server to run nightly or weekly etc.?&lt;/LI&gt;&lt;LI&gt;How? &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/grin.png" /&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mike.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 20:38:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-geoprocessing-script-schedule/m-p/147733#M5873</guid>
      <dc:creator>MikeLouwrens</dc:creator>
      <dc:date>2014-08-07T20:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Publish geoprocessing script? Schedule?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-geoprocessing-script-schedule/m-p/147734#M5874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Mike, &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How are you? Welcome to the world of ArcGIS Server!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly, you are absolutely able to publish your python scripts to ArcGIS Server as geoprocessing services. There will be a few considerations around which libraries you use, what input and output parameters you need and permissions.&amp;nbsp; However, I wonder if there might be a simpler and more efficient way to do this outside of ArcGIS Server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the past when I have worked with clients to schedule data validation scripts or ETL processes, we have done this using a Windows Task Scheduler and a simple batch file which runs the python script. This can be configured to run on a server using an ArcGIS Server licence (although you might want to double check with Esri the in's and out's of this).&amp;nbsp; This method avoids any performance overhead form ArcGIS Server and is simpler to script. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So to answer your questions from above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Yes you are absolutely able to publish a script to ArcGIS Server as a Geoprocessing Service&lt;/P&gt;&lt;P&gt;2. Yes it is possible to schedule a script to run on a server - assuming this is a Microsoft Server then you would be able to schedule a task that ran a script based on your defined time frames. &lt;/P&gt;&lt;P&gt;3. As I alluded to above you would need to user Windows Task Scheduler and create a script that could trigger the geoprocessing service via its REST endpoint or if you don't use ArcGIS Server you can simply run the python script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy to chat more if you've got questions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Aug 2014 21:47:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-geoprocessing-script-schedule/m-p/147734#M5874</guid>
      <dc:creator>SamDrummond2</dc:creator>
      <dc:date>2014-08-07T21:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Publish geoprocessing script? Schedule?</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publish-geoprocessing-script-schedule/m-p/147735#M5875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at below article.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/32962" title="http://support.esri.com/en/knowledgebase/techarticles/detail/32962"&gt;32962 - Run a model as a Windows scheduled task&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/3236_Untitled.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Aug 2014 12:43:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publish-geoprocessing-script-schedule/m-p/147735#M5875</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-08-08T12:43:12Z</dc:date>
    </item>
  </channel>
</rss>

