<?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: Why multiprocessing is not working with GP service(ArcGIS for Server)? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/why-multiprocessing-is-not-working-with-gp-service/m-p/604200#M47232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Joshua!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figured out the solution for the mentioned problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have to set properties of GP tool in "Source" tab as&amp;nbsp;"Python script out Process" (means uncheck "Run Python script&amp;nbsp;in Process").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After setting the above properties run the GP tool and publish its result as GP service as per regular process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dinesh Patil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Feb 2018 14:38:00 GMT</pubDate>
    <dc:creator>dineshpatil2</dc:creator>
    <dc:date>2018-02-07T14:38:00Z</dc:date>
    <item>
      <title>Why multiprocessing is not working with GP service(ArcGIS for Server)?</title>
      <link>https://community.esri.com/t5/python-questions/why-multiprocessing-is-not-working-with-gp-service/m-p/604198#M47230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have published one script tool as a GP service, and it is used to find closest facility for incidents with multi-processing functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have referred&amp;nbsp;&lt;A href="https://community.esri.com/docs/DOC-3824"&gt;Create a script tool that uses multiprocessing&lt;/A&gt;&amp;nbsp;to set properties of script tool.&amp;nbsp; It works fine in ArcMap, also executed through IDE (PyCharm) with hard coded input values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to execute the GP service through 'REST' end but it stuck at the point where multiprocessing is called. Below, I have attached the code snippet, and the script stuck after the highlighted syntax line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was unable to figure out why this problem is occurred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also published one sample script as a GP service which creates 4 KM buffer around point feature and clipped features from other feature class which falls within that buffer, and the scripts works fine through ArcMap&amp;nbsp; as well as&amp;nbsp; REST&amp;nbsp;end of GP service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the GP service with 'find closest facility' for incident not working through GP service. Please help me out!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Dinesh Patil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 10:04:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-multiprocessing-is-not-working-with-gp-service/m-p/604198#M47230</guid>
      <dc:creator>dineshpatil2</dc:creator>
      <dc:date>2018-02-02T10:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why multiprocessing is not working with GP service(ArcGIS for Server)?</title>
      <link>https://community.esri.com/t5/python-questions/why-multiprocessing-is-not-working-with-gp-service/m-p/604199#M47231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looking at &lt;A class="link-titled" href="http://enterprise.arcgis.com/en/server/latest/publish-services/windows/geoprocessing-service-settings-parameters.htm" title="http://enterprise.arcgis.com/en/server/latest/publish-services/windows/geoprocessing-service-settings-parameters.htm"&gt;Geoprocessing service settings: Parameters—Documentation | ArcGIS Enterprise&lt;/A&gt; :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;TABLE style="margin-bottom: 1.55rem; width: 624.667px; background-color: #ffffff; border-collapse: collapse; border-spacing: 0px; border: 1px solid #cccccc; text-align: left; overflow: auto; font-size: 0.875rem; line-height: 1.55rem; color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;TBODY style="overflow: auto; width: 624.667px;"&gt;&lt;TR style="border-bottom: 1px solid #cccccc; text-align: left;"&gt;&lt;TH colspan="" style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;Parameter&lt;/TH&gt;&lt;TH colspan="" style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;Explanation&lt;/TH&gt;&lt;/TR&gt;&lt;TR style="border-bottom: 1px solid #cccccc; text-align: left;"&gt;&lt;TD style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;&lt;P style="margin-top: 0px; margin-bottom: 0px;"&gt;&lt;SPAN class="" style="font-weight: bold; white-space: normal;"&gt;Show Messages&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;&lt;P style="margin-top: 0px; margin-bottom: 1.55rem;"&gt;You can return messages of varying levels to the client that executed your geoprocessing service.&lt;/P&gt;&lt;UL style="margin-top: 0px; margin-bottom: 1.55rem; padding: 0px; list-style-position: inside; margin-left: 0.775rem; font-size: 0.9375rem; line-height: 1.55rem;"&gt;&lt;LI style="list-style-position: outside; margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;&lt;SPAN class="" style="font-weight: bold; white-space: normal;"&gt;None&lt;/SPAN&gt;: (default) No geoprocessing messages are returned to the client, only whether the execution was successful or failed.&lt;/LI&gt;&lt;LI style="list-style-position: outside; margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;&lt;SPAN class="" style="font-weight: bold; white-space: normal;"&gt;Error&lt;/SPAN&gt;: Only tool messages that produce an error are returned to the client.&lt;/LI&gt;&lt;LI style="list-style-position: outside; margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;&lt;SPAN class="" style="font-weight: bold; white-space: normal;"&gt;Warning&lt;/SPAN&gt;: All tool error and warning messages are returned to the client.&lt;/LI&gt;&lt;LI style="list-style-position: outside; margin: 0.3875rem 0px 0.3875rem 1.5rem;"&gt;&lt;SPAN class="" style="font-weight: bold; white-space: normal;"&gt;Info&lt;/SPAN&gt;: All tool messages from execution are returned to the client.&lt;/LI&gt;&lt;/UL&gt;&lt;P style="margin: 0px;"&gt;&lt;/P&gt;&lt;DIV class="" style="background-color: #f8f8f8; border: 1px solid #efefef; padding: 1.023rem; margin-bottom: 1.55rem;"&gt;&lt;H5 class="" style="font-weight: 300; font-style: normal; margin: 0px 0px 0rem; font-size: 1rem; line-height: 1.55rem;"&gt;Caution:&lt;/H5&gt;&lt;P style="margin-top: 0px; margin-bottom: 0px;"&gt;All messages, regardless of level, may contain dataset paths and names, and this may pose a security risk. The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: bold; white-space: normal;"&gt;Info&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;level is verbose and typically contains more references to dataset paths and names. In general, you will want to return messages during development but turn them off in production.&lt;/P&gt;&lt;/DIV&gt;&lt;P style="margin-top: 0px; margin-bottom: 0px;"&gt;&lt;A class="" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/python/message-types-and-severity.htm" style="color: #0074b8; text-decoration: none;"&gt;Learn more about message types and severity in geoprocessing&lt;/A&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the default is None, did you change the Show Messages setting when publishing the geoprocessing service?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 13:42:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-multiprocessing-is-not-working-with-gp-service/m-p/604199#M47231</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-02-02T13:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why multiprocessing is not working with GP service(ArcGIS for Server)?</title>
      <link>https://community.esri.com/t5/python-questions/why-multiprocessing-is-not-working-with-gp-service/m-p/604200#M47232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Joshua!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I figured out the solution for the mentioned problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have to set properties of GP tool in "Source" tab as&amp;nbsp;"Python script out Process" (means uncheck "Run Python script&amp;nbsp;in Process").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After setting the above properties run the GP tool and publish its result as GP service as per regular process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dinesh Patil.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Feb 2018 14:38:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/why-multiprocessing-is-not-working-with-gp-service/m-p/604200#M47232</guid>
      <dc:creator>dineshpatil2</dc:creator>
      <dc:date>2018-02-07T14:38:00Z</dc:date>
    </item>
  </channel>
</rss>

