<?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>idea ArcGIS Online - Notebook Task - Set Task Schedule Details in ArcGIS Notebooks Ideas</title>
    <link>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idi-p/1575114</link>
    <description>&lt;P&gt;I would like to suggest a 2-minute interval option in the dropdown. I only request this to aid with wildfire situational awareness and rapid deployment of resources. The notebook code we developed copies NWS hotspot and potentially dangerous wildfire notification feature into our initial attack feature layer used in field maps by our resources. Currently, there is a 15-minute and 30-minute, but that time span is not sufficient. Thanks, Chris Mask - GIS Manager Oklahoma Forestry Services.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jan 2025 21:25:38 GMT</pubDate>
    <dc:creator>ChristopherMask</dc:creator>
    <dc:date>2025-01-13T21:25:38Z</dc:date>
    <item>
      <title>ArcGIS Online - Notebook Task - Set Task Schedule Details</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idi-p/1575114</link>
      <description>&lt;P&gt;I would like to suggest a 2-minute interval option in the dropdown. I only request this to aid with wildfire situational awareness and rapid deployment of resources. The notebook code we developed copies NWS hotspot and potentially dangerous wildfire notification feature into our initial attack feature layer used in field maps by our resources. Currently, there is a 15-minute and 30-minute, but that time span is not sufficient. Thanks, Chris Mask - GIS Manager Oklahoma Forestry Services.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 21:25:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idi-p/1575114</guid>
      <dc:creator>ChristopherMask</dc:creator>
      <dc:date>2025-01-13T21:25:38Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online - Notebook Task - Set Task Schedule Details</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1575118#M145</link>
      <description>&lt;P&gt;Why not a "type in your number of minutes" option? 2 minutes is great, but being able to specify an exact number would be great.&lt;/P&gt;&lt;P&gt;Otherwise, how about like: 1,2,3,4,5,10,15,20,25,30,45,60,90....&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 21:32:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1575118#M145</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2025-01-13T21:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online - Notebook Task - Set Task Schedule Details</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1575447#M146</link>
      <description>&lt;P&gt;You could embed your update code in a timed loop inside the notebook, have the notebook run every 15&amp;nbsp; minutes, and then have the timed loop within the notebook run every two minutes (for a counted number of runs or a timed duration), then quit.&lt;/P&gt;&lt;P&gt;I've done something similar with time.sleep() in a loop.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 16:36:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1575447#M146</guid>
      <dc:creator>BobBooth1</dc:creator>
      <dc:date>2025-01-14T16:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online - Notebook Task - Set Task Schedule Details</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1575821#M147</link>
      <description>&lt;P&gt;Do what &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/95621"&gt;@BobBooth1&lt;/a&gt;&amp;nbsp; , smh!?!&amp;nbsp; &amp;nbsp;I can't tell you thanks enough for the idea, much appreciated! Added this code snippet at the end of the code and worked like a charm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# Timed loop to execute the function 14 times, every 1 minute&lt;BR /&gt;for _ in range(14):&lt;BR /&gt;logging.info("Starting hotspot feature synchronization...")&lt;BR /&gt;copy_new_hotspot_features_to_event_layer(NWS_HotSpotPoint_layer, EventPoint_layer, CriticalFireArea_layer)&lt;BR /&gt;logging.info("Synchronization complete. Waiting for the next interval...")&lt;BR /&gt;time.sleep(60)&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 15:28:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1575821#M147</guid>
      <dc:creator>ChristopherMask</dc:creator>
      <dc:date>2025-01-15T15:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online - Notebook Task - Set Task Schedule Details</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1575830#M148</link>
      <description>&lt;P&gt;Awesome!&amp;nbsp; Glad it worked for you!&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 15:37:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1575830#M148</guid>
      <dc:creator>BobBooth1</dc:creator>
      <dc:date>2025-01-15T15:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online - Notebook Task - Set Task Schedule Details</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1576482#M149</link>
      <description>&lt;P&gt;So, the task will start but consistently receives this error message. Then, the task is set to failed and will not resume. I have to manually resume the task, which is not sufficient. Thoughts &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/95621"&gt;@BobBooth1&lt;/a&gt;&amp;nbsp;? I have tested and reduced the iterations, but it appears to happen after 5 or 6 attempts.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;KeyboardInterrupt&lt;/SPAN&gt;                         Traceback (most recent call last)
Cell &lt;SPAN class=""&gt;In[1], line 149&lt;/SPAN&gt;
&lt;SPAN class=""&gt;    147&lt;/SPAN&gt;     copy_new_hotspot_features_to_event_layer(NWS_HotSpotPoint_layer, EventPoint_layer, CriticalFireArea_layer)
&lt;SPAN class=""&gt;    148&lt;/SPAN&gt;     logging&lt;SPAN&gt;.&lt;/SPAN&gt;info(&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Synchronization complete. Waiting for the next interval...&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)
&lt;SPAN class=""&gt;--&amp;gt; 149&lt;/SPAN&gt;     time&lt;SPAN&gt;.&lt;/SPAN&gt;sleep(&lt;SPAN&gt;60&lt;/SPAN&gt;)  &lt;SPAN&gt;# Wait for 1 minutes before the next attempt&lt;/SPAN&gt;
&lt;SPAN class=""&gt;    150&lt;/SPAN&gt; &lt;SPAN class=""&gt;except&lt;/SPAN&gt; &lt;SPAN class=""&gt;Exception&lt;/SPAN&gt; &lt;SPAN class=""&gt;as&lt;/SPAN&gt; e:
&lt;SPAN class=""&gt;    151&lt;/SPAN&gt;     logging&lt;SPAN&gt;.&lt;/SPAN&gt;error(&lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Error during attempt &lt;/SPAN&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;attempt &lt;SPAN&gt;+&lt;/SPAN&gt; &lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class=""&gt;{&lt;/SPAN&gt;e&lt;SPAN class=""&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)

&lt;SPAN class=""&gt;KeyboardInterrupt&lt;/SPAN&gt;: &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 17:07:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1576482#M149</guid>
      <dc:creator>ChristopherMask</dc:creator>
      <dc:date>2025-01-16T17:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online - Notebook Task - Set Task Schedule Details</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1576504#M150</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/618008"&gt;@ChristopherMask&lt;/a&gt;&amp;nbsp;- When there is data to update, how long does the process take (within a given loop cycle?) I wonder if maybe the notebook is being run again by the task scheduler while it is still busy doing an update?&lt;/P&gt;&lt;P&gt;Could manage for that case by including a check of current time when the notebook starts, then within each loop check the time, calculate duration since start, and cause it to exit if there is less time left in the current notebook task's run cycle than it would typically take to make an update?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 17:47:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1576504#M150</guid>
      <dc:creator>BobBooth1</dc:creator>
      <dc:date>2025-01-16T17:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online - Notebook Task - Set Task Schedule Details</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1576569#M151</link>
      <description>&lt;P&gt;Well, it there is definitely a pattern. In all the failed task, it appears there is a 4-minute mark the task is stopped and fails. If you run the script from the menu, it works like it should. Bummed&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 19:21:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1576569#M151</guid>
      <dc:creator>ChristopherMask</dc:creator>
      <dc:date>2025-01-16T19:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online - Notebook Task - Set Task Schedule Details</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1644291#M165</link>
      <description>&lt;P&gt;I agree that it would be nice to have the option of shorter intervals, or potentially the ability to input. &amp;nbsp;The interval. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With python, I created three different tasks using the minimum 15-minute interval. &amp;nbsp;I spaced them to start five minutes apart, 2am 2:05am and 2:10am. &amp;nbsp;This way, the data would get updated every 5 minutes. &amp;nbsp;I look at my tasks records and all tasks run within one minute of each other. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I read yesterday that you can't run a time loop in AGOL notebook environment I'm going to try the loop suggested above with a 14 minute time out to see if that works.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 15:10:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1644291#M165</guid>
      <dc:creator>Ian-Horn</dc:creator>
      <dc:date>2025-08-21T15:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online - Notebook Task - Set Task Schedule Details</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1644293#M166</link>
      <description>&lt;P&gt;I mentioned created 3 tasks at 15 minute intervals to ensure data is updated every five minutes. &amp;nbsp;I forgot to mention that it's a colossal waste of credits. &amp;nbsp;I've estimated it would burn ~11,000 credits/year. &amp;nbsp;That's a lot of credits 3 tasks that is not fulling the need to update every 5 minutes.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 15:16:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1644293#M166</guid>
      <dc:creator>Ian-Horn</dc:creator>
      <dc:date>2025-08-21T15:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online - Notebook Task - Set Task Schedule Details</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1644318#M167</link>
      <description>&lt;P&gt;To avoid spending credits, you can run ArcGIS Python API code using a Windows Scheduled task on some machine you control.&amp;nbsp; I have one that runs on my laptop, and a bunch of others that run in a VM. You have to pay for the hardware or hosting, but it can be essentially free, if you are piggybacking on equipment/hosting you have already.&lt;/P&gt;&lt;P&gt;One pattern for that is presented in this tutorial:&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.arcgis.com/en/projects/schedule-automated-near-real-time-data-updates/" target="_blank"&gt;https://learn.arcgis.com/en/projects/schedule-automated-near-real-time-data-updates/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 16:03:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1644318#M167</guid>
      <dc:creator>BobBooth1</dc:creator>
      <dc:date>2025-08-21T16:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Online - Notebook Task - Set Task Schedule Details</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1644330#M168</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/95621"&gt;@BobBooth1&lt;/a&gt;&amp;nbsp;Thank you for sending that link. &amp;nbsp;I'm glad to see the overwriteFS package is still in use and has been updated.&lt;/P&gt;&lt;P&gt;We already run a scheduled task every five minutes with task scheduler on our server. &amp;nbsp;We are migrating all our vector data from SDE to AGOL for consumption. &amp;nbsp;The reason we want to control the task in AGOL (I'm quasi open to an AWS solution) is because we have different login domains for our production servers and scheduled tasks require password input. &amp;nbsp;If the password expires and we haven't open and closed the task for the password prompt, the task breaks and then we get locked out of that domain after three failed attempts. &amp;nbsp;Getting locked out of the production server domain just looks bad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2025 16:24:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-ideas/arcgis-online-notebook-task-set-task-schedule/idc-p/1644330#M168</guid>
      <dc:creator>Ian-Horn</dc:creator>
      <dc:date>2025-08-21T16:24:01Z</dc:date>
    </item>
  </channel>
</rss>

