Feature: Allow QueuePoller to be interrupted from another thread
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
Bắt đầu bằng việc xác định phần triển khai QueuePoller và điểm vào của poll, nơi chờ các yêu cầu SQS hoặc chạy callback của poll. Theo dõi cách hoạt động poll và việc thực thi callback được phối hợp giữa các thread. Hoàn tất khi một lời gọi dừng hủy một poll đang chờ, chờ callback đang hoạt động hoàn tất và ngăn các yêu cầu poll tiếp theo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the feature
There should be a way to cleanly stop/interrupt QueuePoller from another thread. It should immediately abort pending poll requests, but if the poll callback is executing, it should wait for that to complete before returning.
Use Case
I would to write code like Signal.trap("INT") { poller.stop }, so that I may use Ctrl+C to interrupt a daemon script that is polling SQS with QueuePoller.
Proposed Solution
The QueuePoller could have a method stop that can be invoked from any thread. If a call to poll is awaiting an SQS poll request, the request will be immediately aborted and poll will return normally. If poll is executing the callback when stop is invoked, then it will wait until the callback returns and then poll will return without making further poll requests.
Other Information
No response
Acknowledgements
- I may be able to implement this feature request
- This feature might incur a breaking change
SDK version used
3.1.0
Environment details (OS name and version, etc.)
macOS
- Ngôn ngữ chính
- Ruby
- Star
- 3.7k
- Fork
- 1.2k
- Merge trung bình
- 2 ngày 3 giờ
- Pull request đã merge (30 ngày)
- 28
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- 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 aws/aws-sdk-ruby
-
service-api
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
aws/aws-sdk-ruby#3395 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
V4 Development TrackerĐang mởannouncement version-4
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
aws/aws-sdk-ruby#3469 · 2 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
BedrockAgentCore: invoke_agent_runtime buffers entire response instead of streaming in real-timeĐang mởdocumentation p3 queued
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
aws/aws-sdk-ruby#3348 · 6 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
credentials static web identity credentials not picked up without an explicit profile optionĐang mởfeature-request needs-major-version
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
aws/aws-sdk-ruby#3241 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
investigating service-api
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
aws/aws-sdk-ruby#3217 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của aws/aws-sdk-ruby
Issue tương tự
-
Missing ar translation: components/common/CommunitySolution.tsx:communitySolution.authorsSolutionĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
swombat/souls-house#770 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
riverqueue/river#1576 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Scripts: dependency
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
elanthia-online/dr-scripts#7933 ·
Maintainer thường phản hồi trong vòng 1 ngày