Allow specific kinds for sequences
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start by locating SequenceOpts and the sequence enforcement path. Trace how ExcludeKind currently selects kinds, then define IncludedKinds behavior for the listed user:* jobs and verify both the new selection and existing defaults.
Written by the indexing model from the issue text.
Description
We currently have the following options for sequences:
return riverpro.SequenceOpts{
ByArgs: true,
ContinueOnCancelled: true,
ContinueOnDiscarded: true,
ByQueue: false,
ExcludeKind: true,
}
By default, sequences are enforced for each job kind unless we set ExcludeKind: true, so they are enforced across all job kinds. It would be nice to have an IncludedKinds []JobArgs parameter so we can specify a list of kinds we want to include for the sequence instead of having to do everything or just one.
For example, I have the jobs user:add, user:update, user:delete, user:process jobs, but I only want one of these to be running at any given time. Right now, you would need to have a single user:operate to achieve that.
- Dominant language
- Go
- Stars
- 5.7k
- Forks
- 179
- Avg merge
- 15h 43m
- Merged PRs (30d)
- 13
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from riverqueue/river
-
Difficulty 5/5 Over a week Newbie friendliness 45/100
riverqueue/river#1358 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 78/100
riverqueue/river#1302 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
riverqueue/river#1258 · 7 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
riverqueue/river#1225 · 14 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
riverqueue/river#1185 · 2 comments ·
All issues in riverqueue/river
Similar issues
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
blinklabs-io/bursa#904 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
yanet-platform/ipfw-go#129 ·
-
bug confmap/provider/googlesecretmanagerprovider needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
open-telemetry/opentelemetry-collector-contrib#51273 · 2 comments ·
-
bug: AI Gateway client filter lists "Unknown" twice when NULL and literal Unknown clients coexist Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100