Traceback (most recent call last):
File "/workspaces/durable-mcp-python/reboot/mcp/server.py", line 946, in wrapper
return await fn(**dict(bound.arguments))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/durable-mcp-python/tests/test_at_most_once_simple.py", line 38, in add
result = await at_most_once(
^^^^^^^^^^^^^^^^^^^
File "/workspaces/durable-mcp-python/.venv/lib/python3.12/site-packages/rebootdev/aio/workflows.py", line 109, in at_most_once
return await memoize(
^^^^^^^^^^^^^^
File "/workspaces/durable-mcp-python/.venv/lib/python3.12/site-packages/rebootdev/aio/memoize.py", line 109, in memoize
raise AtMostOnceFailedBeforeCompleting(
rebootdev.aio.workflows.AtMostOnceFailedBeforeCompleting: ... it looks like an external failure occurred (e.g., the machine failed, your container was rescheduled, etc) while your code was executing
We have a test for
at_most_oncewhich passes without raising. When I created the simplestat_most_onceexample I could think of in a tool call, I got this stack trace thought the test still passes:Here is a branch with a simple
at_most_oncetest that exhibits the same behavior: https://github.com/reboot-dev/durable-mcp-python/tree/riley/at_most_once_simple_testFile: https://github.com/reboot-dev/durable-mcp-python/blob/riley/at_most_once_simple_test/tests/test_at_most_once_simple.py