linear_priority_function¶
- scheduler.prioritization.linear_priority_function(time_delta: float, job: Job, max_exec: int, job_count: int) float[source]¶
Compute the
Jobs default linear priority.Linear
Jobprioritization such that the priority increases linearly with the amount of time that aJobis overdue. At the exact time of the scheduled execution, the priority is equal to theJobs 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}