I am currently tackling against race conditions in api data fetching and would like to understand why ShouldBeUnique
doesn't work the way I expect it to.
What I think is that when we dispatch job implementing this interface, it doesn't become available to workers right away. Instead, queue will have only one job, while others will wait until it will become processed. Then another from waiting pull becomes available and so on.
However when I test it with multiple workers, I get race condition. How does this even work?
0 Replies