Skip to content

Commit

Permalink
Fix poller service failure when there is suspended job in cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
YevheniiSemendiak committed Nov 28, 2023
1 parent 776cdd1 commit 98256ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion platform_api/orchestrator/poller_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from ..utils.asyncio import run_and_log_exceptions
from ..utils.retry import retries
from .base import Orchestrator
from .job import Job, JobRecord, JobStatusItem, JobStatusReason
from .job import Job, JobPriority, JobRecord, JobStatusItem, JobStatusReason
from .job_request import (
JobAlreadyExistsException,
JobError,
Expand Down Expand Up @@ -199,6 +199,7 @@ async def schedule(self, unfinished: list[JobRecord]) -> SchedulingResult:
continue
jobs_to_start.append(job)

max_job_to_start_priority = JobPriority.LOW
if jobs_to_start:
max_job_to_start_priority = max(job.priority for job in jobs_to_start)

Expand Down

0 comments on commit 98256ee

Please sign in to comment.