Task Scheduling Policy

From webCoRE Wiki - Web-enabled Community's own Rule Engine
Revision as of 13:38, 21 April 2017 by ady624 (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Share on FacebookShare on TwitterShare on Google+Share on LinkedInShare on DiggShare on deliciousShare on redditShare on StumbleUpon

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:

Override any existing scheduled tasks

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

Allow multiple scheduled tasks

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


Here is a good example of when to use Allow multiple scheduled tasks:

Task Scheduling Policy.png