Skip to content

Commit

Permalink
Add pending job state to default unique job states
Browse files Browse the repository at this point in the history
Here, add the `pending` job state to the set of default unique states.
`pending` was a relatively recent addition in #301 and probably should
always have been in the default unique states, but `pending` isn't used
yet so no one noticed one way or the other.
  • Loading branch information
brandur committed Jul 19, 2024
1 parent 832a288 commit f0e4b87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/dbunique/db_unique_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ func TestUniqueInserter_JobInsert(t *testing.T) {
// already been done above.
for _, defaultState := range []rivertype.JobState{
rivertype.JobStateCompleted,
rivertype.JobStatePending,
rivertype.JobStateRunning,
rivertype.JobStateRetryable,
rivertype.JobStateScheduled,
Expand Down

0 comments on commit f0e4b87

Please sign in to comment.