airflow.models.taskreschedule

TaskReschedule tracks rescheduled task instances.

Module Contents

class airflow.models.taskreschedule.TaskReschedule(task, execution_date, try_number, start_date, end_date, reschedule_date)[source]

Bases: airflow.models.base.Base

TaskReschedule tracks rescheduled task instances.

__tablename__ = task_reschedule[source]
id[source]
task_id[source]
dag_id[source]
execution_date[source]
try_number[source]
start_date[source]
end_date[source]
duration[source]
reschedule_date[source]
__table_args__[source]
static query_for_task_instance(task_instance, descending=False, session=None)[source]

Returns query for task reschedules for a given the task instance.

Parameters
  • session (sqlalchemy.orm.session.Session) – the database session object

  • task_instance (airflow.models.TaskInstance) – the task instance to find task reschedules for

  • descending (bool) – If True then records are returned in descending order

static find_for_task_instance(task_instance, session=None)[source]

Returns all task reschedules for the task instance and try number, in ascending order.

Parameters
  • session (sqlalchemy.orm.session.Session) – the database session object

  • task_instance (airflow.models.TaskInstance) – the task instance to find task reschedules for

Was this entry helpful?