airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cedrik Neumann (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AIRFLOW-1793) DockerOperator doesn't work with docker_conn_id
Date Wed, 08 Nov 2017 16:41:00 GMT
Cedrik Neumann created AIRFLOW-1793:
---------------------------------------

             Summary: DockerOperator doesn't work with docker_conn_id
                 Key: AIRFLOW-1793
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1793
             Project: Apache Airflow
          Issue Type: Bug
    Affects Versions: 1.9.0
            Reporter: Cedrik Neumann


The implementation of DockerOperator uses `self.base_url` when loading the DockerHook instead
of `self.docker_url`:
https://github.com/apache/incubator-airflow/blob/v1-9-stable/airflow/operators/docker_operator.py#L150

{noformat}
[2017-11-08 16:10:13,082] {base_task_runner.py:98} INFO - Subtask:   File "/src/apache-airflow/airflow/operators/docker_operator.py",
line 161, in execute
[2017-11-08 16:10:13,083] {base_task_runner.py:98} INFO - Subtask:     self.cli = self.get_hook().get_conn()
[2017-11-08 16:10:13,083] {base_task_runner.py:98} INFO - Subtask:   File "/src/apache-airflow/airflow/operators/docker_operator.py",
line 150, in get_hook
[2017-11-08 16:10:13,083] {base_task_runner.py:98} INFO - Subtask:     base_url=self.base_url,
[2017-11-08 16:10:13,083] {base_task_runner.py:98} INFO - Subtask: AttributeError: 'DockerOperator'
object has no attribute 'base_url'
{noformat}




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

Mime
View raw message