<?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 Long running gp task sort of fails in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/long-running-gp-task-sort-of-fails/m-p/720245#M66862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a long running gp task that is a python script exposed by as a gp tool over the js api. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When i execute the task it returns a dojo.io.script error saying the Timeout exceeded. However a few seconds later it does return the correct result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Something on the server I think is causing the timeout error message to be returned which is firing the errcallback on the method call, instead of waiting for the true result to fire my callback method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to modify the timeout settings in IIS, web.config, and web.config in the rest services config. I also bumped the server object idle times, tried both pooled and non-pooled and synchronous/asynch on the server object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I could just ignore the err callback and get the method to fire when the result came back i would be set but if i comment out the err callback the true callback never gets hit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there some magical one minute setting in IIS or ags?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Oct 2010 21:49:21 GMT</pubDate>
    <dc:creator>KevinGooss</dc:creator>
    <dc:date>2010-10-25T21:49:21Z</dc:date>
    <item>
      <title>Long running gp task sort of fails</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/long-running-gp-task-sort-of-fails/m-p/720245#M66862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a long running gp task that is a python script exposed by as a gp tool over the js api. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When i execute the task it returns a dojo.io.script error saying the Timeout exceeded. However a few seconds later it does return the correct result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Something on the server I think is causing the timeout error message to be returned which is firing the errcallback on the method call, instead of waiting for the true result to fire my callback method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to modify the timeout settings in IIS, web.config, and web.config in the rest services config. I also bumped the server object idle times, tried both pooled and non-pooled and synchronous/asynch on the server object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I could just ignore the err callback and get the method to fire when the result came back i would be set but if i comment out the err callback the true callback never gets hit.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there some magical one minute setting in IIS or ags?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 21:49:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/long-running-gp-task-sort-of-fails/m-p/720245#M66862</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2010-10-25T21:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Long running gp task sort of fails</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/long-running-gp-task-sort-of-fails/m-p/720246#M66863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure if this is applicable but have you looked at &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/namespace_esri.htm#config"&gt;esri.config.defaults.io.timeout&lt;/A&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Oct 2010 23:51:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/long-running-gp-task-sort-of-fails/m-p/720246#M66863</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2010-10-25T23:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: Long running gp task sort of fails</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/long-running-gp-task-sort-of-fails/m-p/720247#M66864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That was precisely it. Thank you very much&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Oct 2010 12:43:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/long-running-gp-task-sort-of-fails/m-p/720247#M66864</guid>
      <dc:creator>KevinGooss</dc:creator>
      <dc:date>2010-10-26T12:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Long running gp task sort of fails</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/long-running-gp-task-sort-of-fails/m-p/720248#M66865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kevin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am now having the same exact problem, and I have tried all the solutions that you have tried.&amp;nbsp; Can you tell me how you used esri.config.defaults.io.timeout in your code?&amp;nbsp; Where did you place it?&amp;nbsp; If I could see a sample of the code with it, that would be great!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff McCullough&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 17:45:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/long-running-gp-task-sort-of-fails/m-p/720248#M66865</guid>
      <dc:creator>JeffMcCullough</dc:creator>
      <dc:date>2011-03-29T17:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Long running gp task sort of fails</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/long-running-gp-task-sort-of-fails/m-p/720249#M66866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Kevin,&lt;BR /&gt;&lt;BR /&gt;I am now having the same exact problem, and I have tried all the solutions that you have tried.&amp;nbsp; Can you tell me how you used esri.config.defaults.io.timeout in your code?&amp;nbsp; Where did you place it?&amp;nbsp; If I could see a sample of the code with it, that would be great!&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;BR /&gt;&lt;BR /&gt;Jeff McCullough&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you set GP service Execution type as Asynchronous (on Parameters tab) and then its timeout property is controlled by The maximum time a client can use a service(on Pooling tab). you don't have to set esri.config.defaults.io.timeout. Just remember in API using GP.sumbitJob instead of GP.execute.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 18:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/long-running-gp-task-sort-of-fails/m-p/720249#M66866</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-03-29T18:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Long running gp task sort of fails</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/long-running-gp-task-sort-of-fails/m-p/720250#M66867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the response.&amp;nbsp; I am running asynchronous and I am using SubmitJob and I am still getting time out errors.&amp;nbsp; When you say properly set, what do you mean?&amp;nbsp; It currently is 600 secs and when I run this gp on Arcgis server, it runs fine, and there are no issues.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2011 15:58:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/long-running-gp-task-sort-of-fails/m-p/720250#M66867</guid>
      <dc:creator>JeffMcCullough</dc:creator>
      <dc:date>2011-04-07T15:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Long running gp task sort of fails</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/long-running-gp-task-sort-of-fails/m-p/720251#M66868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi ,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am also using asynch GP tak and Submit job . In the GP service tab&amp;nbsp; in timeout session , i have set each parameter as 6000 sec . I have also set the value of esri.config.defaults.io.timeout=600;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but i still get the timeout exception.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas will be appreciated&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nidhi&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 09:32:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/long-running-gp-task-sort-of-fails/m-p/720251#M66868</guid>
      <dc:creator>nidhiarora</dc:creator>
      <dc:date>2011-05-18T09:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: Long running gp task sort of fails</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/long-running-gp-task-sort-of-fails/m-p/720252#M66869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;looks to me that the setting for esri.config.defaults.io.timeout&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is defined in milliseconds so setting it to esri.config.defaults.io.timeout = 600&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;is a .6 second timeout&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I set mine to esri.config.defaults.io.timeout = 300000&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to give me a 5 min timeout.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2012 17:14:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/long-running-gp-task-sort-of-fails/m-p/720252#M66869</guid>
      <dc:creator>DallasShearer</dc:creator>
      <dc:date>2012-02-24T17:14:05Z</dc:date>
    </item>
  </channel>
</rss>

