You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Daryl Erwin (JIRA)" <ji...@apache.org> on 2017/07/21 15:42:00 UTC

[jira] [Created] (AIRFLOW-1440) SQLSensor - needs autocommit to be able to see

Daryl Erwin created AIRFLOW-1440:
------------------------------------

             Summary: SQLSensor - needs autocommit to be able to see 
                 Key: AIRFLOW-1440
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1440
             Project: Apache Airflow
          Issue Type: Bug
          Components: hooks
            Reporter: Daryl Erwin
            Priority: Minor


The SqlSensor will continue to poke and see stale data unless autocommit is turned on. If I place it in the task, it warns about deprication. What is the preferred method here? It is not in the connection details. I cant put it in the sql statement.

/usr/local/lib/python2.7/dist-packages/airflow/models.py:1943: PendingDeprecationWarning: Invalid arguments were passed to SqlSensor. Support for passing such arguments will be dropped in Airflow 2.0. Invalid arguments were:
*args: ()
**kwargs: {'autocommit': True}
  category=PendingDeprecationWarning



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