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/05/25 07:08:45 UTC

[GitHub] [airflow] JavierLopezT opened a new issue #16036: Default args for different operators

JavierLopezT opened a new issue #16036:
URL: https://github.com/apache/airflow/issues/16036


   Sometimes, different operators share the same argument. For instance, SnowflakeOperator and MySqlOperator have both the argument `database`. It would be nice to be able to assign a different value for the arg in default_args depending on the operator. So the `default_args` dict would be something like this:
   
   ```
   default_args = {
   'email': blabla,
   'database': {'SnowflakeOperator': 'snow_database',
                        'MySqlOperator': 'mysql_database'}
   }
   ```
   
   That way, if you have a few of both operators, you don't have to type the database argument for all the operators of one kind


-- 
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:
users@infra.apache.org



[GitHub] [airflow] JavierLopezT commented on issue #16036: Default args for different operators

Posted by GitBox <gi...@apache.org>.
JavierLopezT commented on issue #16036:
URL: https://github.com/apache/airflow/issues/16036#issuecomment-847712009


   Closed for opening first a discussion


-- 
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:
users@infra.apache.org



[GitHub] [airflow] JavierLopezT closed issue #16036: Default args for different operators

Posted by GitBox <gi...@apache.org>.
JavierLopezT closed issue #16036:
URL: https://github.com/apache/airflow/issues/16036


   


-- 
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:
users@infra.apache.org