Feature Request: Automatic Worker Process Recycling
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
No files, tests, or entry points are named. First clarify whether recycling should be driven by job count, lifetime, memory, or all three, then define the configuration and acceptance criteria for worker restarts and verify the behavior with targeted tests.
Written by the indexing model from the issue text.
Description
Currently, Solid Queue worker processes run indefinitely, which can lead to memory bloat and potential resource leaks over time. This is especially problematic for long-running, high-volume systems.
Feature request:
Implement an automatic worker process recycling mechanism. This could:
- Restart processes after a configurable number of jobs processed
- Restart processes after a configurable time period
- Restart processes when memory usage exceeds a certain threshold
This feature would help maintain a clean state, prevent memory leaks, and ensure consistent performance without manual intervention.
Potential configuration options:
SolidQueue.configure do |config|
config.max_jobs_per_worker = 1000
config.max_worker_lifetime = 1.hour
config.max_worker_memory = 512.megabytes
end
- Dominant language
- Ruby
- Stars
- 2.5k
- Forks
- 250
- Avg merge
- 7h 7m
- Merged PRs (30d)
- 6
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 rails/solid_queue
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
rails/solid_queue#802 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
rails/solid_queue#797 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
rails/solid_queue#792 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
rails/solid_queue#780 ·
-
Removing job from recurring.yml does not remove job from recurring tasks tab in mission control Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
rails/solid_queue#623 · 2 reactions ·
All issues in rails/solid_queue
Similar issues
-
feature
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
betagouv/acces-cible#722 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
foobara/empty-ruby-project-generator#10 · 2 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
バグ
Difficulty 1/5 Under an hour Newbie friendliness 92/100