MCPcopy Index your code
hub / github.com/riverqueue/river / NewJobListParams

Function NewJobListParams

job_list_params.go:185–201  ·  view source on GitHub ↗

NewJobListParams creates a new JobListParams to return available jobs sorted by time in ascending order, returning 100 jobs at most.

()

Source from the content-addressed store, hash-verified

183// NewJobListParams creates a new JobListParams to return available jobs sorted
184// by time in ascending order, returning 100 jobs at most.
185func NewJobListParams() *JobListParams {
186 return &JobListParams{
187 limit: 100,
188 sortField: JobListOrderByID,
189 sortOrder: SortOrderAsc,
190 states: []rivertype.JobState{
191 rivertype.JobStateAvailable,
192 rivertype.JobStateCancelled,
193 rivertype.JobStateCompleted,
194 rivertype.JobStateDiscarded,
195 rivertype.JobStatePending,
196 rivertype.JobStateRetryable,
197 rivertype.JobStateRunning,
198 rivertype.JobStateScheduled,
199 },
200 }
201}
202
203func (p *JobListParams) copy() *JobListParams {
204 return &JobListParams{

Callers 6

ExerciseClientFunction · 0.92
Test_Client_Stop_CommonFunction · 0.85
Test_Client_JobListFunction · 0.85
JobListMethod · 0.85
JobListTxMethod · 0.85

Calls

no outgoing calls

Tested by 4

ExerciseClientFunction · 0.74
Test_Client_Stop_CommonFunction · 0.68
Test_Client_JobListFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…