[ 
https://issues.apache.org/jira/browse/AIRFLOW-1641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16179632#comment-16179632
 ] 

Nick Bauer commented on AIRFLOW-1641:
-------------------------------------

Yes, we are seeing this a lot. I've determined the issue to be (at least for 
us) that the dagbag import times out, and the task never runs.  specifically 
this line: m = imp.load_source(mod_name, filepath) throws an exception and its 
handled and not re-raised.  The dag import code is reused in other places so i 
am not sure if raising an exception will break other things, however it seems 
to me that it should raise an exception in all cases.

> Task gets stuck in queued state
> -------------------------------
>
>                 Key: AIRFLOW-1641
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1641
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: scheduler
>    Affects Versions: 1.8.0
>         Environment: Linux
>            Reporter: Mas
>              Labels: queued, scheduler, stuck, task
>
> Hello,
> I have one dag with ~20 tasks. 
> The dags runs daily and some tasks can sometime last for hours, depending on 
> the processed data behind.
> There are some interactions with AWS and a remote DB.
> I only use LocalExecutor.
> What this issue is about, is the fact that sometime (randomly, and without 
> any clear reason) one of the tasks (here also, it is random) gets stuck in 
> "queued" state and never starts running. 
> The manual workaround is to restart the task manually by clearing it.
> Does anyone have ideas about the issue behind, and how to avoid it for the 
> future? 
> Thanks in advance for your help.
> PS: other people are facing the same behaviour: 
> [link|https://stackoverflow.com/questions/45853013/airflow-tasks-get-stuck-at-queued-status-and-never-gets-running]



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to