constant_weight_prioritization#
- scheduler.prioritization.constant_weight_prioritization(time_delta: float, job: Job, max_exec: int, job_count: int) float [source]#
Interprets the Job’s weight as its priority.
Return the
Job
’s weight for overdueJob
s, otherwise return zero:\left(\mathtt{time\_delta},\mathtt{weight}\right)\ {\mapsto}\begin{cases} 0 & :\ \mathtt{time\_delta}<0\\ \mathtt{weight} & :\ \mathtt{time\_delta}\geq0 \end{cases}