MCPcopy Create free account
hub / github.com/riverqueue/river / JobStates

Function JobStates

rivertype/river_type.go:225–236  ·  view source on GitHub ↗

JobStates returns all possible job states.

()

Source from the content-addressed store, hash-verified

223
224// JobStates returns all possible job states.
225func JobStates() []JobState {
226 return []JobState{
227 JobStateAvailable,
228 JobStateCancelled,
229 JobStateCompleted,
230 JobStateDiscarded,
231 JobStatePending,
232 JobStateRetryable,
233 JobStateRunning,
234 JobStateScheduled,
235 }
236}
237
238// AttemptError is an error from a single job attempt that failed due to an
239// error or a panic.

Callers 11

insert_opts.goFile · 0.92
TestUniqueOpts_validateFunction · 0.92
TestUniqueOptsFunction · 0.92
JobCountByAllStatesMethod · 0.92
JobCountByAllStatesMethod · 0.92
JobCountByAllStatesMethod · 0.92
exerciseJobDeleteFunction · 0.92
exerciseJobReadFunction · 0.92
exerciseJobUpdateFunction · 0.92
exerciseJobInsertFunction · 0.92
TestJobStatesFunction · 0.92

Calls

no outgoing calls

Tested by 3

TestUniqueOpts_validateFunction · 0.74
TestUniqueOptsFunction · 0.74
TestJobStatesFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…