bobhaffner opened a new issue #13823:
URL: https://github.com/apache/airflow/issues/13823


   **Apache Airflow version**:
   2.1.0.dev0
   
   **Kubernetes version (if you are using kubernetes)** (use `kubectl version`):
   NA
   
   **Environment**:
   Docker
   Apache/Airflow
   master-python3.6
   
   **What happened**:
   some_pg_task it out of sequence
   
   **What you expected to happen**:\
   Task sequence should be 
   some_py_task >> some_pg_task
   
   <!-- What do you think went wrong? -->
   
   
   **How to reproduce it**:
   ```
   from airflow.models import DAG
   from airflow.providers.postgres.operators.postgres import PostgresOperator
   import os
   
   from airflow.utils.dates import days_ago
   
   default_args = {'start_date': days_ago(1)}
   
   dag_name = os.path.splitext(os.path.basename(__file__))[0]
   
   with DAG(dag_name, default_args=default_args) as dag:
   
       @dag.task
       def some_py_task() -> str:
           return some_str
   
       some_str = some_py_task()
   
       some_pg_task = PostgresOperator(task_id='some_pg_task', 
                        sql='select * from %s',
                        parameters=[some_str],
                        postgres_conn_id='postgres_bob')
   ```
   
   **Anything else we need to know**:
   The MSSQL Op behaves the same way
   
   


----------------------------------------------------------------
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:
[email protected]


Reply via email to