Make Exchanger handler dispatch recoverable after process restart
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ó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Start with src/keri/peer/exchanging.py, especially Exchanger.processEvent() and the persistence and handler-dispatch steps linked in the issue. Trace how persisted exchanges and startup recovery are handled before choosing a durable strategy; the issue does not name specific tests or storage files. Done means focused crash/restart tests show accepted EXNs are recoverable, rejected EXNs stay out of the work path, and repeated handler processing is safe.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Feature request description/rationale
Exchanger.processEvent() persists a successfully verified exchange message and then dispatches it to the registered behavior handler:
There is no durable indication that handler dispatch still needs to occur or a startup path that re-dispatches a persisted exchange whose handler did not finish. If the process stops after logEvent() but before or during behavior.handle(), the EXN can remain saved while the application-layer work triggered by that EXN is lost.
This matters for downstream handlers that drive IPEX and multisig workflows. It is the KERIpy side of the application-layer reliability concern described in WebOfTrust/keria#433.
Expected behavior
Once KERIpy accepts and persists an EXN for handler processing, a process restart must not permanently lose the associated handler work.
KERIpy should use a durable queue, escrow, or another appropriate storage strategy so incomplete handler dispatch can be recovered after startup. The implementation should also define safe repeated processing where recovery may cause an exchange to be presented to a handler more than once.
Suggested scope
- Preserve pending handler work across process shutdown or failure.
- Recover and resume or safely repeat incomplete dispatch on startup.
- Keep rejected or unverifiable EXNs outside the durable work path.
- Make the ownership boundary between Exchanger persistence and application handler completion explicit.
- Add focused crash/restart tests around persistence, dispatch, and completion.
Related: WebOfTrust/keria#433
- Ngôn ngữ chính
- Python
- Star
- 81
- Fork
- 79
- Merge trung bình
- 2 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 25
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 WebOfTrust/keripy
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
WebOfTrust/keripy#1787 ·
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 82/100
WebOfTrust/keripy#1765 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`kli vc create` crashes on an aggregate credential when reading the issuance timestampCó thể đã có người làm @jaelliot đã nhận 46 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
WebOfTrust/keripy#1679 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 52/100
WebOfTrust/keripy#1788 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
WebOfTrust/keripy#1768 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của WebOfTrust/keripy
Issue tương tự
-
test_real_pandoc_failure_is_one_path_free_line fails on macOS CI with current Homebrew pandocĐang mởbug TAG: unit tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
learningequality/ricecooker#898 ·
-
task
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
freelawproject/litigant-portal#1285 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
jmespath/jmespath.py#401 ·
-
least_squares returns a nonfinite objective for an invalid initial residualCó thể đã có người làm @sylvesterkaczmarek đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
google-deepmind/mujoco#4023 ·
Maintainer thường phản hồi trong vòng 11 ngày
-
Five Australian birds: Red-capped Parrot, Red-winged Fairywren, Gilbert’s Honeyeater, Western Spinebill, Western WattlebirdCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
arnegiacomo/fugleramme#427 ·
Maintainer thường phản hồi trong vòng 1 ngày