-
-
Notifications
You must be signed in to change notification settings - Fork 10
FAQ
The rusty-krab-manager
uses the due-dates you've selected to bias the selection of tasks towards those tasks due earliest. Consider the following 3 tasks:
Example, Early Task, 2020-12-29 12:00
Example, Later Task, 2020-12-30 12:00
Example, Latest Task, 2021-01-01 12:00
All of these tasks are grouped under the tag of Example
. Let's assume that the current time is 2020-12-28 12:00
. The first thing the rusty-krab-manager
does is redefine the due dates in terms of the number of minutes until each due date. Thus, Early Task
is due in 1440
minutes, Later Task
is due in 2880
minutes, and Latest Task
is due in 5760
minutes.
Then, we take the largest time (in this case 5760
) and we divide that value by the rest of the other values. This leads to the following values Early Task
--> 5760/1440 = 4, Later Task
--> 5760/2880 = 2, Latest Task
--> 5760/5760 = 1.
Then we compute a probability distribution function by normalizing by the sum of the previous values. Early Task
--> 4/7, Later Task
--> 2/7, Latest Task
--> 1/7.
If the tag Example
is randomly selected by the rusty-krab-manager
then we have a 4/7 chance to select the Early Task
a 2/7 chance to select the Later Task
and a 1/7 chance to select the Latest Task
.
RKM only reads changes from the task file when it changes tasks (either through 'r', 'c', or the timer running through). Also, RKM will only save tasks in the task file whose due date is in the future!