Commit a4b7da3
committed
fix: handle missing blob attribute in shallow checkpoint savers (#80)
Add defensive checks in AsyncShallowRedisSaver and ShallowRedisSaver
to filter out documents with None or missing blob attributes when
loading pending sends. This prevents AttributeError when querying
checkpoint writes from the TASKS channel.
Fixes #801 parent 13ddc96 commit a4b7da3
File tree
3 files changed
+397
-8
lines changed- langgraph/checkpoint/redis
- tests
3 files changed
+397
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
646 | 646 | | |
647 | 647 | | |
648 | 648 | | |
| 649 | + | |
649 | 650 | | |
650 | | - | |
651 | | - | |
652 | | - | |
653 | | - | |
| 651 | + | |
654 | 652 | | |
| 653 | + | |
655 | 654 | | |
656 | 655 | | |
657 | 656 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
675 | 675 | | |
676 | 676 | | |
677 | 677 | | |
| 678 | + | |
678 | 679 | | |
679 | | - | |
680 | | - | |
681 | | - | |
682 | | - | |
| 680 | + | |
683 | 681 | | |
| 682 | + | |
684 | 683 | | |
685 | 684 | | |
686 | 685 | | |
| |||
0 commit comments