Class JudgeWorker

java.lang.Object
dev.dokimos.server.service.JudgeWorker

@Component public class JudgeWorker extends Object
Background worker that drains the judge job queue. Each poll claims at most one pending job in its own transaction, scores the run's not-yet-evaluated items in seek-keyed pages with the LLM call made outside any database transaction, persists each page of results in its own transaction, and on completion finalizes the run. Failures are recorded with retry for transient errors and a terminal FAILED for non-retryable ones or once the attempt ceiling is reached.
  • Constructor Details

  • Method Details

    • poll

      @Scheduled(fixedDelayString="${dokimos.judge.poll-interval-ms:5000}") public void poll()
      Polls for and processes one job per cycle. The fixed delay is read from dokimos.judge.poll-interval-ms.