Skip to content

Proper exception handling in the DAGs #14

@TAnas0

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)
  • ...

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