Skip to content

Remove sys.exit from exception handling #1666

Closed

Description

@woop

We're currently calling sys.exit on exception handling here https://github.com/feast-dev/feast/blob/master/sdk/python/feast/feature_store.py#L301, which will cause the Feast (and wrapping) process to exit. Instead, we should either reraise or even just let the exception bubble up.

Activity

  1. added
    good first issue
    on Jun 29, 2021
  2. NoRaincheck commented on Jul 7, 2021

    @NoRaincheck
    Contributor

    Is the "simple" fix just to reraise everything? Or is it more nuanced than that?
    Happy to put a quick PR for it.

  3. achals commented on Jul 8, 2021

    @achals
    Member

    @charliec443 I think it's sufficient to not catch the exception at all if all we're doing it re-raising it - but I was looking at the code and I don't see a sys.exit call anywhere in the feature_store.py. Maybe it was removed in an intermediate PR?

  4. NoRaincheck commented on Jul 8, 2021

    @NoRaincheck
    Contributor

    Yes I think you're right. it was progressively removed in in some of the PRs, I think namely the Redshift one.

  5. achals commented on Jul 8, 2021

    @achals
    Member

    Alright, going to close this out in that case!

  6. achals commented on Jul 8, 2021

    @achals
    Member

    Fixed by #1641

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuepriority/p1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions