https://wiki.webcore.co/history/Task_Scheduling_Policy?feed=atom&Task Scheduling Policy - Revision history2024-03-29T07:57:18ZRevision history for this page on the wikiMediaWiki 1.28.0https://wiki.webcore.co/index.php?title=Task_Scheduling_Policy&diff=173&oldid=prevady624 at 13:41, 21 April 20172017-04-21T13:41:05Z<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 13:41, 21 April 2017</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l11" >Line 11:</td>
<td colspan="2" class="diff-lineno">Line 11:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>:[[File:Task_Scheduling_Policy.png]]</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>:[[File:Task_Scheduling_Policy.png]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div> </div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins class="diffchange diffchange-inline">''Allow multiple scheduled tasks'' is required in this example, so that each light gets a chance at being turned off. Each light will turn off exactly 5 minutes after it was turned on, regardless of what the other lights did. Note the N (never cancel tasks) next to the <code>with</code> - this is there to ensure that turning off a light manually does not cancel the schedules for all other lights.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>__NOTOC__</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>__NOTOC__</div></td></tr>
</table>ady624https://wiki.webcore.co/index.php?title=Task_Scheduling_Policy&diff=172&oldid=prevady624: Created page with "Tasks that take time (like, for example, ''Wait'') usually schedule a wake up call, unless the wait is very short, in which case it may simply wait, blocking everything, for t..."2017-04-21T13:38:12Z<p>Created page with "Tasks that take time (like, for example, ''Wait'') usually schedule a wake up call, unless the wait is very short, in which case it may simply wait, blocking everything, for t..."</p>
<p><b>New page</b></p><div>Tasks that take time (like, for example, ''Wait'') usually schedule a wake up call, unless the wait is very short, in which case it may simply wait, blocking everything, for that short duration. But if the wait is long enough, or the execution time has exceeded safe thresholds, a ''schedule'' is saved so that the piston wakes up at the required time. When scheduling a task, the piston has two choices:<br />
<br />
==Override any existing scheduled tasks==<br />
If any previous run resulted in a schedule for the current action, that schedule is dropped and replaced with a new one. This means that any pending tasks inside the action are cancelled and a new action execution is started<br />
<br />
==Allow multiple scheduled tasks==<br />
This option will not cancel the previously scheduled tasks, but it will add a new schedule to the already existing one, causing all the tasks to repeat for as many times as the action was executed<br />
<br />
<br />
Here is a good example of when to use ''Allow multiple scheduled tasks'':<br />
:[[File:Task_Scheduling_Policy.png]]<br />
<br />
<br />
__NOTOC__</div>ady624