MCPcopy
hub / github.com/riverqueue/river / Job

Struct Job

job.go:9–14  ·  view source on GitHub ↗

Job represents a single unit of work, holding both the arguments and information for a job with args of type T.

Source from the content-addressed store, hash-verified

7// Job represents a single unit of work, holding both the arguments and
8// information for a job with args of type T.
9type Job[T JobArgs] struct {
10 *rivertype.JobRow
11
12 // Args are the arguments for the job.
13 Args T
14}
15
16// JobArgs is an interface that represents the arguments for a job of type T.
17// These arguments are serialized into JSON and stored in the database.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected