sangkyoonnam commented on PR #602: URL: https://github.com/apache/burr/pull/602#issuecomment-5982049303
Thanks for opening this for feedback. Two contract questions stood out while I probed it. `intercept_run` gets `action`, `state`, `inputs` and `worker_adapter_set` (`application.py:193`). The app, partition and sequence IDs are reachable through `ApplicationContext.get()` but aren't hook arguments, and the Temporal example builds its workflow ID from `id(state)` (`temporal_interceptor.py:162`). That isn't stable across restarts, so a resubmission can use a new workflow ID and start a second execution if the first start went through. The sequence ID isn't a stable invocation ID either. With `SQLitePersister`, a `remote` step whose interceptor raised was saved as failed at sequence 1, and after reload it ran again at sequence 2. It's the same question I raised on dev@ for #786: https://lists.apache.org/thread/m9rz4kvwgob25y7vkwm7qk62ll0bmmcv. Even with a stable ID, the adapter still has to decide what to do with an existing execution, since Temporal allows reusing a closed workflow's ID by default. Separately, the non-streaming path hands the interceptor raw inputs before `validate_inputs` and the `__context`/`__tracer` remapping (`application.py:186-204`), so each backend has to repeat both. I haven't run any of this against a Temporal server. Should Burr own a per-invocation ID that's persisted before dispatch and kept through recovery, with the adapter reconciling uncertain submissions? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
