Package dev.dokimos.server.service
Class JudgeWorker
java.lang.Object
dev.dokimos.server.service.JudgeWorker
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 Summary
ConstructorsConstructorDescriptionJudgeWorker(JudgeJobTransactions transactions, LlmCredentialService credentialService, JudgeProperties properties) -
Method Summary
-
Constructor Details
-
JudgeWorker
@Autowired public JudgeWorker(JudgeJobTransactions transactions, LlmCredentialService credentialService, JudgeProperties properties)
-
-
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 fromdokimos.judge.poll-interval-ms.
-