linear_priority_function#
- scheduler.prioritization.linear_priority_function(time_delta: float, job: Job, max_exec: int, job_count: int) float [source]#
Compute the
Job
s default linear priority.Linear
Job
prioritization such that the priority increases linearly with the amount of time that aJob
is overdue. At the exact time of the scheduled execution, the priority is equal to theJob
s weight.The function is defined as
\left(\mathtt{time\_delta},\mathtt{weight}\right)\ {\mapsto}\begin{cases} 0 & :\ \mathtt{time\_delta}<0\\ {\left(\mathtt{time\_delta}+1\right)}\cdot\mathtt{weight} & :\ \mathtt{time\_delta}\geq0 \end{cases}