Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -1465,7 +1465,7 @@ type JobListResult struct {
// provided context is used for the underlying Postgres query and can be used to
// cancel the operation or apply a timeout.
//
// params := river.NewJobListParams().WithLimit(10).State(river.JobStateCompleted)
// params := river.NewJobListParams().WithLimit(10).State(rivertype.JobStateCompleted)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Found these via git grep -n river.JobState

// jobRows, err := client.JobList(ctx, params)
// if err != nil {
// // handle error
Expand Down Expand Up @@ -1498,7 +1498,7 @@ func (c *Client[TTx]) JobList(ctx context.Context, params *JobListParams) (*JobL
// provided context is used for the underlying Postgres query and can be used to
// cancel the operation or apply a timeout.
//
// params := river.NewJobListParams().WithLimit(10).State(river.JobStateCompleted)
// params := river.NewJobListParams().WithLimit(10).State(rivertype.JobStateCompleted)
// jobRows, err := client.JobListTx(ctx, tx, params)
// if err != nil {
// // handle error
Expand Down
2 changes: 1 addition & 1 deletion cmd/river/riverbench/river_bench.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func (b *Benchmarker[TTx]) Run(ctx context.Context) error {
return

case <-ticker.C:
numJobs, err := b.driver.GetExecutor().JobCountByState(ctx, river.JobStateAvailable)
numJobs, err := b.driver.GetExecutor().JobCountByState(ctx, rivertype.JobStateAvailable)
if err != nil {
b.logger.ErrorContext(ctx, "Error counting jobs", "err", err)
continue
Expand Down