pub fn rank(priority: Option<TaskPriority>) -> u8
0 for high, 1 for normal (and absent).
0
high
1
normal