rake resque:pool isn't respecting TERM_CHILD?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Compare the rake resque:pool entry point with the resque-pool executable, focusing first on how TERM_CHILD is read and passed to the pool manager. Reproduce both commands with TERM_CHILD=1 and verify that the rake task selects the same term-graceful-and-wait behavior and emits the corresponding enabled message.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I think I'm seeing an issue where rake resque:pool doesn't honor the TERM_CHILD=1 flag. If I run resque-pool, it does work as expected.
Here is the output from rake resque:pool:
~/app $ TERM_CHILD=1 bundle exec rake resque:pool
resque-pool-worker[integrations][34943]: Starting worker abedford-mbpr.local:34943:*
resque-pool-worker[integrations][34944]: Starting worker abedford-mbpr.local:34944:*
resque-pool-manager[integrations][34935]: started manager
resque-pool-worker[integrations][34945]: Starting worker abedford-mbpr.local:34945:*
resque-pool-manager[integrations][34935]: Pool contains worker PIDs: [34943, 34944, 34945, 34946, 34947]
resque-pool-worker[integrations][34946]: Starting worker abedford-mbpr.local:34946:*
resque-pool-worker[integrations][34947]: Starting worker abedford-mbpr.local:34947:*
^Cresque-pool-manager[integrations][34935]: INT: immediate shutdown (graceful worker shutdown)
resque-pool-manager[integrations][34935]: Sending TERM to all workers
resque-pool-manager[integrations][34935]: manager finished
Here is the output from resque-pool:
~/app $ TERM_CHILD=1 bundle exec resque-pool
resque-pool-manager[integrations][34858]: Resque Pool running in development environment
resque-pool-manager[34858]: TERM_CHILD enabled, so will user 'term-graceful-and-wait' behaviour
resque-pool-worker[integrations][34866]: Starting worker abedford-mbpr.local:34866:*
resque-pool-worker[integrations][34867]: Starting worker abedford-mbpr.local:34867:*
resque-pool-worker[integrations][34868]: Starting worker abedford-mbpr.local:34868:*
resque-pool-manager[integrations][34858]: started manager
resque-pool-manager[integrations][34858]: Pool contains worker PIDs: [34866, 34867, 34868, 34869, 34870]
resque-pool-worker[integrations][34870]: Starting worker abedford-mbpr.local:34870:*
resque-pool-worker[integrations][34869]: Starting worker abedford-mbpr.local:34869:*
^Cresque-pool-manager[integrations][34858]: INT: immediate shutdown (graceful worker shutdown)
resque-pool-manager[integrations][34858]: Sending TERM to all workers
resque-pool-manager[integrations][34858]: manager finished
I notice this line: resque-pool-manager[34858]: TERM_CHILD enabled, so will user 'term-graceful-and-wait' behaviour indicating that term child is enabled. Does the lack of this in the rake resque:pool mean what I think it does - that TERM_CHILD isn't respected?
- Ngôn ngữ chính
- Ruby
- Star
- 456
- Fork
- 149
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của resque/resque-pool
-
help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
resque/resque-pool#189 · 2 bình luận · 3 reaction ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
resque/resque-pool#177 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
resque/resque-pool#176 · 3 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
resque/resque-pool#172 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
resque/resque-pool#168 · 1 bình luận ·
Tất cả issue của resque/resque-pool
Issue tương tự
-
verified
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
zerocracy/judges-action#2984 ·
Maintainer thường phản hồi trong vòng 1 ngày