airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (AIRFLOW-1460) Tasks get stuck in the "removed" state
Date Thu, 22 Mar 2018 06:55:00 GMT


ASF subversion and git services commented on AIRFLOW-1460:

Commit 8c42d03c4e35a0046e46f0e2e6db588702ee7e8b in incubator-airflow's branch refs/heads/master
from [~tronbabylove]
[;h=8c42d03 ]

[AIRFLOW-1460] Allow restoration of REMOVED TI's

When a task instance exists in the database but
its corresponding task
no longer exists in the DAG, the scheduler marks
the task instance as
REMOVED. Once removed, task instances stayed
removed forever, even if
the task were to be added back to the DAG.

This change allows for the restoration of REMOVED
task instances. If a
task instance is in state REMOVED but the
corresponding task is present
in the DAG, restore the task instance by setting
its state to NONE.

A new unit test simulates the removal and
restoration of a task from a
DAG and verifies that the task instance is
`./ tests.models:DagRunTest`


Closes #3137 from astahlman/airflow-1460-restore-

> Tasks get stuck in the "removed" state
> --------------------------------------
>                 Key: AIRFLOW-1460
>                 URL:
>             Project: Apache Airflow
>          Issue Type: Bug
>            Reporter: George Leslie-Waksman
>            Assignee: George Leslie-Waksman
>            Priority: Major
>             Fix For: 1.9.1
> The current handling of task instances that get assigned the state "removed" is that
they get ignored.
> If the underlying task later gets re-added, the existing task instances will prevent
the task from running in the future.

This message was sent by Atlassian JIRA

View raw message