Skip to content

Added preemptive (priority + sjf) scheduling algorithms #14458

Added preemptive (priority + sjf) scheduling algorithms

Added preemptive (priority + sjf) scheduling algorithms #14458

Triggered via pull request October 3, 2025 04:45
Status Failure
Total duration 9s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Ruff (UP006): scheduling/preemptive_sjf(srtf).py#L61
scheduling/preemptive_sjf(srtf).py:61:32: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): scheduling/preemptive_sjf(srtf).py#L61
scheduling/preemptive_sjf(srtf).py:61:14: UP006 Use `list` instead of `List` for type annotation
Ruff (ARG001): scheduling/preemptive_sjf(srtf).py#L61
scheduling/preemptive_sjf(srtf).py:61:5: ARG001 Unused function argument: `arrival`
Ruff (F841): scheduling/preemptive_sjf(srtf).py#L31
scheduling/preemptive_sjf(srtf).py:31:5: F841 Local variable `last_executed` is assigned to but never used
Ruff (UP006): scheduling/preemptive_sjf(srtf).py#L12
scheduling/preemptive_sjf(srtf).py:12:74: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): scheduling/preemptive_sjf(srtf).py#L12
scheduling/preemptive_sjf(srtf).py:12:60: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): scheduling/preemptive_sjf(srtf).py#L12
scheduling/preemptive_sjf(srtf).py:12:42: UP006 Use `list` instead of `List` for type annotation
Ruff (UP035): scheduling/preemptive_sjf(srtf).py#L9
scheduling/preemptive_sjf(srtf).py:9:1: UP035 `typing.List` is deprecated, use `list` instead
Ruff (E501): scheduling/preemptive_sjf(srtf).py#L2
scheduling/preemptive_sjf(srtf).py:2:89: E501 Line too long (100 > 88)
Ruff (N999): scheduling/preemptive_sjf(srtf).py#L1
scheduling/preemptive_sjf(srtf).py:1:1: N999 Invalid module name: 'preemptive_sjf(srtf)'