You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Yuri Bendana (JIRA)" <ji...@apache.org> on 2018/11/29 02:57:00 UTC
[jira] [Updated] (AIRFLOW-3415) Imports become null when triggering
dagruns in a loop
[ https://issues.apache.org/jira/browse/AIRFLOW-3415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yuri Bendana updated AIRFLOW-3415:
----------------------------------
Description:
When triggering dagruns in a loop, the imported references become null on the second iteration. Here is an example [gist|[https://gist.github.com/ybendana/3bc0791fe00b099be04aca47a8d524c9].] For the purposes here, you can ignore the DagRunSensor task. On the first iteration the 'sleeper' dag gets triggered but on the second iteration I see a
{noformat}
TypeError: 'NoneType' object is not callable{noformat}
To workaround this, I have to copy the import (in this case trigger_dag) inside the loop.
was:When triggering dagruns in a loop, the imported references become null on the second iteration. Here is an example [gist|[https://gist.github.com/ybendana/3bc0791fe00b099be04aca47a8d524c9].] For the purposes here, you can ignore the DagRunSensor task. On the first iteration the 'sleeper' dag gets triggered but on the second iteration I see a {{TypeError: 'NoneType' object is not callable. To }}workaround this, I have to copy the import (in this case trigger_dag) inside the loop.
> Imports become null when triggering dagruns in a loop
> -----------------------------------------------------
>
> Key: AIRFLOW-3415
> URL: https://issues.apache.org/jira/browse/AIRFLOW-3415
> Project: Apache Airflow
> Issue Type: Bug
> Components: DagRun
> Affects Versions: 1.10.1
> Environment: CentOS 7
> Reporter: Yuri Bendana
> Priority: Minor
>
> When triggering dagruns in a loop, the imported references become null on the second iteration. Here is an example [gist|[https://gist.github.com/ybendana/3bc0791fe00b099be04aca47a8d524c9].] For the purposes here, you can ignore the DagRunSensor task. On the first iteration the 'sleeper' dag gets triggered but on the second iteration I see a
> {noformat}
> TypeError: 'NoneType' object is not callable{noformat}
> To workaround this, I have to copy the import (in this case trigger_dag) inside the loop.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)