Skip to content

Limit parallel jobs by args #626

Closed Answered by bgentry
pablo-ruth asked this question in Q&A
Sep 27, 2024 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

Yes that sample looks correct. If you don't specify ByState you will get the default list of states in my previous response. However if you customize it there are certain states that are required (pending, scheduled, available, running). So as long as you have those 4 in the list you are free to add/remove the others.

With the new unique jobs implementation, does not having the default list of states no longer introduce a performance issue?

Correct, the latest implementation allows customizing the list as I've described above, and if you stay within those constraints the fast index-based unique path will be used. Even better, you can now still use unique jobs when using InsertMany.

In t…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@pablo-ruth
Comment options

@bgentry
Comment options

Answer selected by pablo-ruth
@pablo-ruth
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants