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

✨ Add ExceptionHandler component #349

Merged
merged 1 commit into from
Aug 1, 2024
Merged

Conversation

MFA-X-AI
Copy link
Member

@MFA-X-AI MFA-X-AI commented Aug 1, 2024

Description

This PR adds ExceptionHandler component. Useful for workflows that might hit an exception. This component allows users to handle it gracefully. Attach the main execution to its body branch, and if it hits an exception it will continue on the exception branch, with the exception message. It will then continue with the main execution whether it hits the exception or not.

image

Pull Request Type

  • Xircuits Core (Jupyterlab Related changes)
  • Xircuits Canvas (Custom RD Related changes)
  • Xircuits Component Library
  • Xircuits Project Template
  • Testing Automation
  • Documentation
  • Others (Please Specify)

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Tests

  1. Run the ExceptionHandlerExample.xircuits workflow. Ensure it executes as expected.
  2. run any other workflows that may run into exceptions. Ensure that the ExceptionHandler component can handle it as expected.

Tested on?

  • Windows
  • Linux Ubuntu
  • Centos
  • Mac
  • Others (State here -> xxx )

Copy link

github-actions bot commented Aug 1, 2024

Binder 👈 Launch a binder notebook on branch XpressAI/xircuits/fahreza/exception-components

@MFA-X-AI MFA-X-AI merged commit 178c514 into master Aug 1, 2024
9 checks passed
@MFA-X-AI MFA-X-AI deleted the fahreza/exception-components branch August 1, 2024 08:40
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