airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bolke de Bruin (JIRA)" <>
Subject [jira] [Commented] (AIRFLOW-931) LocalExecutor fails to run queued task with race condition
Date Sun, 05 Mar 2017 13:08:33 GMT


Bolke de Bruin commented on AIRFLOW-931:

[~v_krishna] please see and test it.

> LocalExecutor fails to run queued task with race condition
> ----------------------------------------------------------
>                 Key: AIRFLOW-931
>                 URL:
>             Project: Apache Airflow
>          Issue Type: Sub-task
>    Affects Versions: Airflow 1.8, 1.8.0rc4
>            Reporter: Vijay Krishna Ramesh
>            Assignee: Bolke de Bruin
> provides a small
example that consistently hits this problem with LocalExecutor.
> Basically when the dag run kicks off (with concurrency > 1) and a LocalExecutor with
parallelism > 2 the scheduler marks more than concurrency tasks as queued (
> There is a second check before actually running the task (
that leaves the task in the QUEUED state but then the scheduler never picks it back up.  This
causes the DAG to get stuck (as the queued tasks never run) until the scheduler is restarted
(at which point the enqueued tasks are considered orphaned, the status is set to NONE, and
then they are picked up by the scheduler again and run.

This message was sent by Atlassian JIRA

View raw message