Skip to content

Revert rescues#29

Merged
bencoppock merged 2 commits intomainfrom
revert-rescues
Mar 21, 2026
Merged

Revert rescues#29
bencoppock merged 2 commits intomainfrom
revert-rescues

Conversation

@bencoppock
Copy link
Copy Markdown
Contributor

Decided against rescuing exceptions in user-provided callbacks for now. There are no stateful processes we need to protect in ModBoss, so it's up to the user to decide if they want to wrap their own logic in a try/rescue.

If a read/write callback function raises an exception, we're going to
allow that without rescuing. There are no stateful processes in ModBoss
that the exception might mess up; it's just the caller's processes that
might suffer.

If a user of this library wants to protect against exceptions, they can
always wrap the logic of their callback function in a try/rescue and
return an error tuple to ModBoss if an exception was raised. For
example, that would allow ModBoss to retry up to max_attempts.
ModBoss retries to occur.
@bencoppock bencoppock merged commit 44d1f91 into main Mar 21, 2026
3 checks passed
@bencoppock bencoppock deleted the revert-rescues branch March 21, 2026 08:12
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.

1 participant