-
-
Notifications
You must be signed in to change notification settings - Fork 279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Usage of sidekiq-unique-jobs with activejob #76
Comments
+1 |
The readme does not include the Also, where should this go? |
but if I dont want to use unique with all my workers? |
I've come up with a hack. It's flexible, so you can do what you want with this pattern. With ActiveJob, it compares all jobs by their argument hash, so all jobs are subject to the action (drop/delay). In the configuration lambda, if you make a job unique by adding a uuid to the arguments hash, the job will not be subject to the action. You can use any information in the jobs hash. The most interesting ones are the
|
I strongly recommend people to use sidekiq directly and not bother with active job. Why settle for a Fiat when you can drive a Ferrari? |
This comparison doesn't work here. It is all about a vendor-lock, which is always bad for a big business |
Here is an implementation for ActiveJob: activejob-uniqueness |
To use the uniqueness with active job:
Maybe you can update the readme for this?
The text was updated successfully, but these errors were encountered: