Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New: "NoSuccess" decorator processor #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

matthias-mayr
Copy link
Member

This decorator can be useful as part of a recovery process that should still produce a failure feedback to the parent.

This decorator can be useful as part of a recovery process
that should still produce a failure feedback to the parent.
@matthias-mayr
Copy link
Member Author

If this is merged, it should be mentioned here in the wiki as well.

@frovida
Copy link

frovida commented Jul 6, 2023

Nothing against. I would take the chance to give a more clear naming: FailureIsSuccess, and SuccessIsFailure. Borrowed from pytree https://py-trees.readthedocs.io/en/devel/decorators.html . If you have spare time, you could consider to put in a base class to avoid repeat 70% of the code.

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