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/01/20 14:25:00 UTC

[GitHub] [airflow] jjmurre opened a new issue #13789: New cli interface in Airflow 1.1014 is missing possibility to use task_params for a task run

jjmurre opened a new issue #13789:
URL: https://github.com/apache/airflow/issues/13789


   **Apache Airflow version**: 1.10/14
   
   **Environment**:
   - **Cloud provider or hardware configuration**: -
   - **OS** (e.g. from /etc/os-release): Ubuntu 20:04
   - **Kernel** (e.g. `uname -a`): 5.8.0-36-generic
   - **Install tools**: -
   - **Others**: -
   
   **What happened**:
   
   The new cli uses `airflow task run ...` to run individual tasks. What is missing is the possibility to use task parameters as a cli flag: `-tp` or `--task_params`.
   
   **What you expected to happen**:
   The possibility to use task parmeters.
   
   **How to reproduce it**:
   Issue a `airflow task run` from cli. There is no mention of `--task_params`.


----------------------------------------------------------------
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] potiuk closed issue #13789: New cli interface in Airflow 1.1014 is missing possibility to use task_params for a task run

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


   


----------------------------------------------------------------
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] boring-cyborg[bot] commented on issue #13789: New cli interface in Airflow 1.1014 is missing possibility to use task_params for a task run

Posted by GitBox <gi...@apache.org>.
boring-cyborg[bot] commented on issue #13789:
URL: https://github.com/apache/airflow/issues/13789#issuecomment-763640188


   Thanks for opening your first issue here! Be sure to follow the issue template!
   


----------------------------------------------------------------
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] mik-laj commented on issue #13789: New cli interface in Airflow 1.1014 is missing possibility to use task_params for a task run

Posted by GitBox <gi...@apache.org>.
mik-laj commented on issue #13789:
URL: https://github.com/apache/airflow/issues/13789#issuecomment-763809507


   I guess you wanted to use the `airflow tasks test` command.  The `airflow run` command never had a `--task_params`` parameter
   
   Airflow 1.10.12
   ```
   airflow test [-h] [-sd SUBDIR] [-dr] [-tp TASK_PARAMS] [-pm]
                dag_id task_id execution_date
   
   -tp, --task_params
       Sends a JSON params dict to the task
   ```
   Airflow 1.10.14
   ```
   airflow tasks test [-h] [-n] [-m] [-S SUBDIR] [-t TASK_PARAMS]
                      dag_id task_id execution_date
   
   -t, --task-params
   Sends a JSON params dict to the task
   ```
   This change are described in the migration guide: https://airflow.apache.org/docs/apache-airflow/stable/upgrading-to-2.html#airflow-cli-changes-in-2-0
   
   <img width="833" alt="Screenshot 2021-01-20 at 18 28 06" src="https://user-images.githubusercontent.com/12058428/105212068-44cfa380-5b4d-11eb-988c-5d0409a2849d.png">
   
   
   


----------------------------------------------------------------
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] jjmurre commented on issue #13789: New cli interface in Airflow 1.1014 is missing possibility to use task_params for a task run

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


   Tx. for the quick reply. That's good news, it was indeed the replacement for the `airflow test` command that I wanted to use. And tx. for the link to the migration guide!


----------------------------------------------------------------
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] potiuk commented on issue #13789: New cli interface in Airflow 1.1014 is missing possibility to use task_params for a task run

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


   Closing it - please let us know @jjmurre if it is not solved by @mik-laj answer - we will reopen it then.


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