So far, all scheduling tasks are scheduled all the same.
But, we will try to differentiate between recurring tasks and new oneshot tasks (spawned when new events will occur on origins).
All the while, we'll still continue on passing on origins already registered.
We must also avoid starvation on tasks (we must pass on all tasks given enough time)
For this, we introduce the priority notion in tasks (3 values: high, normal, low).
The new scheduling policy will be to trigger a given percentage for all sort.
We'll begin with the following percentage:
- 0.5: high
- 0.3: normal
- 0.2: low