Skip to content

[subproc] add exit runtime code#69

Merged
mr-chelyshkin merged 2 commits into
mainfrom
subproc_exit_code
Apr 19, 2026
Merged

[subproc] add exit runtime code#69
mr-chelyshkin merged 2 commits into
mainfrom
subproc_exit_code

Conversation

@mr-chelyshkin
Copy link
Copy Markdown
Contributor

📝 Description

Add exit_code from subprocess

Fix

  • TaskError::Fail { reason, exit_code: Option<i32> }
  • TaskError::Fatal { reason, exit_code: Option<i32> }
  • Event::exit_code: Option<i32> + with_exit_code(i32) builder
  • Actor propagates exit_code from TaskError into the corresponding TaskFailed / ActorDead events.

Tests

  • TaskError::Fail/Fatal round-trip with exit_code.
  • Event::with_exit_code populates the field.
  • End-to-end: actor receiving TaskError::Fail { exit_code: Some(5) } emits TaskFailed { event.exit_code == Some(5) }.

🔄 Related Issues

Resolves #68

✅ Checklist

  • Documentation updated (README, rustdoc, examples)
  • Tests added/updated (if relevant)
  • CI passes locally

@mr-chelyshkin mr-chelyshkin merged commit 70b37a1 into main Apr 19, 2026
8 checks passed
@mr-chelyshkin mr-chelyshkin deleted the subproc_exit_code branch April 19, 2026 07:43
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.

Surface subprocess exit code through TaskError and Event

1 participant