ashb commented on a change in pull request #5998: [AIRFLOW-5398] Update contrib example DAGs to context manager URL: https://github.com/apache/airflow/pull/5998#discussion_r321713401
########## File path: airflow/contrib/example_dags/example_azure_cosmosdb_sensor.py ########## @@ -41,24 +41,25 @@ 'email_on_retry': False } -dag = DAG('example_azure_cosmosdb_sensor', default_args=default_args) +with DAG( + dag_id='example_azure_cosmosdb_sensor', + default_args=default_args +) as dag: -dag.doc_md = __doc__ + t1 = AzureCosmosDocumentSensor( + task_id='check_cosmos_file', + database_name='airflow_example_db', + collection_name='airflow_example_coll', + document_id='airflow_checkid', + azure_cosmos_conn_id='azure_cosmos_default' Review comment: Keep trailing commas please ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services