You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/12/09 16:15:06 UTC

[GitHub] [airflow] kaxil commented on a change in pull request #20151: Deprecate smart sensors

kaxil commented on a change in pull request #20151:
URL: https://github.com/apache/airflow/pull/20151#discussion_r765942620



##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -145,6 +145,12 @@ def __init__(
 
         self.dagbag = DagBag(dag_folder=self.subdir, read_dags_from_db=True, load_op_links=False)
 
+        if conf.getboolean('smart_sensor', 'use_smart_sensor'):
+            warnings.warn(
+                'Smart sensors are deprecated. Please use Deferrable Operators instead.',

Review comment:
       Do you'll think adding a link to the docsite for deferrable operators will be helpful?
   
   @potiuk @turbaszek @eladkal ?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org