Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajastro committed Feb 7, 2024
1 parent cad8ba6 commit b460f77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions astronomer/providers/core/triggers/astro.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ async def run(self) -> AsyncIterator[TriggerEvent]:
self.external_dag_id, self.dag_run_id, self.external_task_id
)
state = task_instance.get("state") if task_instance else None
if state == "success":
if state in ("success", "skipped"):
yield TriggerEvent({"status": "done"})
elif state == "failed":
elif state in ("failed", "upstream_failed"):
yield TriggerEvent({"status": "failed"})
else:
dag_run = hook.get_dag_run(self.external_dag_id, self.dag_run_id)
Expand Down

0 comments on commit b460f77

Please sign in to comment.