A run to queue (design 4.55): input for thread threadId, run by the agent agentId for tenantId, treating a busy thread as policy says, with at most maxAttempts attempts (RunQueueSettings.maxAttempts when built by RunSubmitter). A submissionKey makes the submit idempotent: a second submit with the key of an entry the store still holds returns that entry's ticket, and a different submission under the key is refused (QueueError.SubmissionKeyReused).
traceContext is the submitter's trace position (design 4.58): the entry stores it (QueueEntry.trace) and every attempt runs with it as RunConfig.traceContext (QueueEntry.attemptConfig), so all of an entry's attempts, on whatever worker or machine, sit in the submitter's trace. A retry under the same key may carry another context (a new request's span): it is not part of sameAs, and the entry keeps the first submission's.
apply and the with* setters throw IllegalArgumentException for maxAttempts below 1; Submission.of returns it as a ValidationError.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any