Skip to content

Proper exception handling in the DAGs #14

Description

@TAnas0

Currently, certain methods in the DAGs do not have proper error handling.

For example, this pull_survey_cto_data.get_form_data method

def get_form_data(form):
always returns the response from the remote API, regardless if the response is valid, the status code is erroneous...

Acceptance Criteria

Identify parts of the DAG where sensitive requests are being made (remote APIs, DB operations...) and use Python exception handling as you see fit:

  • wrap in try/except blocks
  • log the exception using logger.exception(e)
  • ...

Activity

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

    2Simple issue requiring little effortairflowgood first issueGood for newcomersrefactorTime to restructure some code!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions