Comments (4)
I've seen very little demand for this type of functionality so I don't plan on implementing this myself. If Redis is down, we have no access to reliable storage. Sidekiq cannot depend on log output or the filesystem for a reliable storage between reboots. If you want to provide additional safety with your own patches, I think that's great. If you want to submit a PR with changes which make your patches more maintainable, I'd welcome them.
from sidekiq.
Hi Mike,
Thanks for your prompt response. We understand your concerns, and we appreciate your suggestion to provide additional safety with our own patches.
To address the potential loss of jobs during unexpected process exits, our proposal is inspired by the sidekiq_retries_exhausted
hook. We don't intend for Sidekiq to rely on log output, the filesystem, or any specific storage mechanism. Instead, we envision allowing the application using Sidekiq to decide how to proceed with the unpushed jobs.
We're considering two potential methods like for example:
-
reliable_push_limit_reached
:
This hook would be triggered when a limit is reached, enabling users to take specific actions for individual jobs.reliable_push_limit_reached do |job| # Custom actions for handling the job end
-
reliable_push_jobs_on_exit
:
This hook would be invoked when jobs are in danger of being lost due to process exits, providing an opportunity for users to implement recovery strategies.reliable_push_jobs_on_exit do |jobs| # Custom actions for handling the list of jobs end
About contributing to a Sidekiq Pro feature, what's the best way to go about it? If you have some guidance, that would be great.
Thanks again,
from sidekiq.
I'm not interested in further refinement of this feature. I don't believe your suggestions would add any more real world reliability. It requires the user to provide the code, would be hard to integration test and infrequently executed.
Look into reconciliation instead: https://www.mikeperham.com/2014/05/27/the-reconciliation-step/
from sidekiq.
Alright,
We are not entirely sure how distinct this would be from 'sidekiq_exhausted_retries' on the server side, as both aim to provide an alternative when Sidekiq can't do anything else with the jobs and to help with the 'reconciliation'.
In any case, thanks once more. We'll figure out how to handle it on our end.
from sidekiq.
Related Issues (20)
- Bucket limiter can be timezone aware with day interval HOT 1
- The incompatible args warning not generated for ActiveSupport::HashWithIndifferentAccess HOT 2
- [suggestion] smarter default rate limit backoff strategy HOT 5
- [Feature request] Ability to customize `(class, args, queue)` list for unique jobs HOT 6
- Improve the `CurrentAttributes` module HOT 4
- Payload field inside work from Sidekiq::WorkSet is not hash anymore HOT 1
- [ENT] Rate Limiting Bucket w/ Points HOT 3
- Sidekiq UI not working HOT 4
- Either declare or remove dependency on base64 to avoid a Ruby 3.3 warning HOT 1
- Jobs disappears for 10 seconds when Worker is picking it up HOT 3
- Sidekiq 7 API Change - Sidekiq[:average_scheduled_poll_interval] HOT 4
- When `perform_bulk` is passed an array arg with size 1, e.g. [[1, 2, 3]] ArgumentError HOT 6
- sidekiq-ent limiter timeouts from redis-client revisited HOT 7
- transactional_push! prevents jobs from being added to a batch HOT 19
- Sidekiq paused the default queue for no reason after an upgrade 6.x -> 7.x HOT 4
- We randomly see a RedisTimeoutError HOT 19
- [Discussion] Handling long-running jobs that are killed by deployments HOT 4
- Sidekiq HOT 1
- Is there anyway to find the total memory usage Sidekiq of Rails Application. HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sidekiq.