You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ashb (via GitHub)" <gi...@apache.org> on 2023/02/24 13:05:50 UTC

[GitHub] [airflow] ashb opened a new issue, #29738: `airflow dags list` command no longer works

ashb opened a new issue, #29738:
URL: https://github.com/apache/airflow/issues/29738

   ### Body
   
   As of main commit dff425bc3d `airflow dags list` doesn't work anymore! I don't know when it broke.
   
   It's in the help, but.... doesn't work
   ```
   ❯ airflow dags -h
   Usage: airflow dags [-h] COMMAND ...
   
   Manage DAGs
   
   Positional Arguments:
     COMMAND
       backfill          Run subsections of a DAG for a specified date range
       delete            Delete all DB records related to the specified DAG
       list              List all the DAGs
       list-import-errors
       ...
   ```
   
   But trying to run it
   ```
   ❯ airflow dags list
   
   Usage: airflow dags [-h] COMMAND ...
   
   Manage DAGs
   
   Positional Arguments:
     COMMAND
       backfill  Run subsections of a DAG for a specified date range
       list-runs
                 List DAG runs given a DAG id
       pause     Pause a DAG
       test      Execute one single DagRun
       unpause   Resume a paused DAG
   
   Options:
     -h, --help  show this help message and exit
   
   airflow dags command error: argument COMMAND: invalid choice: 'list' (choose from 'backfill', 'list-runs', 'pause', 'test', 'unpause'), see help above.
   ```
   
   ### Committer
   
   - [X] I acknowledge that I am a maintainer/committer of the Apache Airflow project.


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

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] ashb commented on issue #29738: `airflow dags list` command no longer works

Posted by "ashb (via GitHub)" <gi...@apache.org>.
ashb commented on issue #29738:
URL: https://github.com/apache/airflow/issues/29738#issuecomment-1443680178

   Was some problem with my local dev environment being out of date. Updated and it went away.


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

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] ashb closed issue #29738: `airflow dags list` command no longer works

Posted by "ashb (via GitHub)" <gi...@apache.org>.
ashb closed issue #29738: `airflow dags list` command no longer works
URL: https://github.com/apache/airflow/issues/29738


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

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk commented on issue #29738: `airflow dags list` command no longer works

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #29738:
URL: https://github.com/apache/airflow/issues/29738#issuecomment-1443713652

   I love the kinds of errors that solve themselves :D


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

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] `airflow dags list` command no longer works [airflow]

Posted by "ashb (via GitHub)" <gi...@apache.org>.
ashb commented on issue #29738:
URL: https://github.com/apache/airflow/issues/29738#issuecomment-1815446434

   > @ashb  I had the same  issue of yours.  What have you done to resolve it ?
   > Tryed to update my local enviorment but without success
   > 
   https://github.com/apache/airflow/issues/29738#issuecomment-1443680178
   
   I deleted the virtual env and created it from scratch 


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

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] ashb commented on issue #29738: `airflow dags list` command no longer works

Posted by "ashb (via GitHub)" <gi...@apache.org>.
ashb commented on issue #29738:
URL: https://github.com/apache/airflow/issues/29738#issuecomment-1443665217

   And I suspect the same problem is causing `tasks list` not to work either. `backup` is the dag id I'm trying to explore
   
   ```
   airflow ❯ AIRFLOW__CORE__DAGS_FOLDER=$PWD/testdag.py airflow tasks list -h
   Usage: airflow tasks list [-h] [-S SUBDIR] [-t] [-v] dag_id
   
   List the tasks within a DAG
   
   Positional Arguments:
     dag_id                The id of the dag
   
   Options:
     -h, --help            show this help message and exit
     -S, --subdir SUBDIR   File location or directory from which to look for the dag. Defaults to '[AIRFLOW_HOME]/dags' where [AIRFLOW_HOME] is the value you set for 'AIRFLOW_HOME' config you set in 'airflow.cfg'
     -t, --tree            Tree view
     -v, --verbose         Make logging output more verbose
   
   
   airflow ❯ AIRFLOW__CORE__DAGS_FOLDER=$PWD/testdag.py airflow tasks list backup
   Usage: airflow [-h] GROUP_OR_COMMAND ...
   
   Positional Arguments:
     GROUP_OR_COMMAND
   
       Groups:
         dags          Manage DAGs
         tasks         Manage tasks
   
       Commands:
   
   Options:
     -h, --help        show this help message and exit
   
   airflow command error: unrecognized arguments: backup, see help above.
   ```


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

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] `airflow dags list` command no longer works [airflow]

Posted by "lucasvittal2 (via GitHub)" <gi...@apache.org>.
lucasvittal2 commented on issue #29738:
URL: https://github.com/apache/airflow/issues/29738#issuecomment-1815219112

   @ashb  I had the same  issue of yours.  What have you done to resolve it ?
   Tryed to update my local enviorment but without success
   
   ![image](https://github.com/apache/airflow/assets/62555057/3e1905ed-4f83-443c-a5ea-7d0241e9e5cf)
   


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

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org