Fix WMQ examples (75-77) - #492
Open
mp-orkes wants to merge 3 commits into
Open
Conversation
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
mp-orkes
force-pushed
the
fix/wmq-examples
branch
from
August 14, 2026 01:16
1ce4ba7 to
5f649cc
Compare
mp-orkes
commented
Aug 14, 2026
| @@ -3,11 +3,17 @@ | |||
| Demonstrates: | |||
mp-orkes
commented
Aug 14, 2026
| @@ -4,10 +4,18 @@ | |||
| - wait_for_message_tool with streaming: push messages in and see the agent react | |||
mp-orkes
commented
Aug 14, 2026
| continue | ||
| if msg.error(): | ||
| if msg.error().code() == KafkaError._PARTITION_EOF: | ||
| def main() -> None: |
mp-orkes
marked this pull request as ready for review
August 14, 2026 01:21
kowser-orkes
approved these changes
Aug 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Tested WMQ & Agent examples:
main()ends it withhandle.stop().stop()fired right after the lastsend_message, so the third task was pulled but never answered. Now waits before stopping.if __name__ == "__main__"guard); added it plus a Ctrl+C that stops the agent.Ran each against a local OSS server with WMQ enabled. 76 now answers all 3 tasks (
_stop_requested: true, COMPLETED); 77 echoes produced records ([le_random_topic@0] hello).🤖 Generated with Claude Code