Skip to content

Add on_abort handler support for procedures#4298

Open
onx2 wants to merge 1 commit intoclockworklabs:masterfrom
BigWoofStudios:master
Open

Add on_abort handler support for procedures#4298
onx2 wants to merge 1 commit intoclockworklabs:masterfrom
BigWoofStudios:master

Conversation

@onx2
Copy link

@onx2 onx2 commented Feb 15, 2026

Description of Changes

Adds support for procedure on_abort handlers, including macro parsing, bindings propagation, schema validation, and runtime scheduling of the handler when a procedure traps. Also updates V9 validation tests to use the new add_procedure(..., on_abort) signature.

Helps #3789, this allows us to reschedule the procedure when aborted

API and ABI breaking changes

No breaking changes expected. (Adds optional on_abort metadata and preserves existing behavior when omitted.)

Expected complexity level and risk

Touches multiple layers (macro → bindings → schema → runtime), but the change is additive and limited in scope. Primary risk is mismatched server/client versions or handler scheduling edge cases, mitigated by validation and async scheduling.

Testing

  • Run cargo test
  • (Optional) Integration check: publish a module with #[procedure(on_abort = "...")], trigger a trap, and verify handler is scheduled

@CLAassistant
Copy link

CLAassistant commented Feb 15, 2026

CLA assistant check
All committers have signed the CLA.

@onx2 onx2 marked this pull request as ready for review February 15, 2026 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants