You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Jakob Homan (Jira)" <ji...@apache.org> on 2019/09/13 22:06:00 UTC

[jira] [Created] (AIRFLOW-5486) Unreachable sleep statement in azure_container_instances_operator

Jakob Homan created AIRFLOW-5486:
------------------------------------

             Summary: Unreachable sleep statement in azure_container_instances_operator
                 Key: AIRFLOW-5486
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-5486
             Project: Apache Airflow
          Issue Type: Bug
          Components: operators
    Affects Versions: 1.10.6
            Reporter: Jakob Homan


Note: This ticket's being created to facilitate a new contributor's workshop for Airflow. After the workshop has completed, I'll mark these all available for anyone that might like to take them on.

There's a sleep statement in the azure_container_instances_operator meant to throttle it, but the sleep is at the wrong indent and so is never called.

 

airflow/contrib/operators/azure_container_instances_operator.py:265
{code:java}
while True:
    try:
        cg_state = self._ci_hook.get_state(resource_group, name)
        instance_view = cg_state.containers[0].instance_view
    ...
    except Exception:
        self.log.exception("Exception while getting container groups")

sleep(1) {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)