Class TraceEvalWorker

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

@Component public class TraceEvalWorker extends Object
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 Details

  • 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 from dokimos.trace.eval.poll-interval-ms.