msumit commented on issue #16430:
URL: https://github.com/apache/airflow/issues/16430#issuecomment-861542531


   @paantya it should be straightforward to use. 
   
   Specify params while initiating DAG, for example
   ```
   with DAG(
       'tutorial',
       default_args=default_args,
       schedule_interval=timedelta(days=1),
       start_date=days_ago(2),
       params={"sleep": 5},
   ) as dag:
   ```
   
   & then use it in a task, like this
   ```
       t2 = BashOperator(
           task_id='sleep',
           depends_on_past=False,
           bash_command="sleep {{ params['sleep'] }}",
       )
   ```
   
   


-- 
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