Package dev.dokimos.server.service
Class TraceEvalWorker
java.lang.Object
dev.dokimos.server.service.TraceEvalWorker
Background worker that drains the online trace eval queue. Each poll claims at most one pending job in
its own transaction, calls the judge outside any database transaction, and records the score (or a
sanitized failure with retry for transient errors) in its own transaction. Reuses the same judge
scoring machinery as the experiment-side
JudgeWorker: poll-and-claim, REQUIRES_NEW tx
boundaries, retry ceiling, and credential-sanitizing error handling.-
Constructor Summary
ConstructorsConstructorDescriptionTraceEvalWorker(TraceEvalJobTransactions transactions, LlmCredentialService credentialService, TraceProperties properties) -
Method Summary
-
Constructor Details
-
TraceEvalWorker
@Autowired public TraceEvalWorker(TraceEvalJobTransactions transactions, LlmCredentialService credentialService, TraceProperties properties)
-
-
Method Details
-
poll
@Scheduled(fixedDelayString="${dokimos.trace.eval.poll-interval-ms:5000}") public void poll()Polls for and processes one job per cycle. The fixed delay is read fromdokimos.trace.eval.poll-interval-ms.
-