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 2019/12/09 09:10:48 UTC

[GitHub] [airflow] potiuk commented on issue #6753: [AIRFLOW-6197] Use tabulate to display DAG Runs

potiuk commented on issue #6753: [AIRFLOW-6197] Use tabulate to display DAG Runs
URL: https://github.com/apache/airflow/pull/6753#issuecomment-563135955
 
 
   NICE!
   ```
   ╒════╤══════════════════════════════════════╤═════════╤══════════╤═══════════════════════════╤══════════════════════════════════╕
   │ 42 │ scheduled__2019-12-08T00:00:00+00:00 │ running │ tutorial │ 2019-12-08T00:00:00+00:00 │ 2019-12-09T09:09:00.142491+00:00 │
   ├────┼──────────────────────────────────────┼─────────┼──────────┼───────────────────────────┼──────────────────────────────────┤
   │  3 │ scheduled__2019-12-07T00:00:00+00:00 │ running │ tutorial │ 2019-12-07T00:00:00+00:00 │ 2019-12-09T09:08:42.382330+00:00 │
   ╘════╧══════════════════════════════════════╧═════════╧══════════╧═══════════════════════════╧══════════════════════════════════╛
   root@d8257ffc347b:/opt/airflow# airflow dags list_runs tutorial --help
   /opt/airflow/airflow/models/dagbag.py:21: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
     import imp
   usage: airflow dags list_runs [-h] [--no_backfill] [--state STATE]
                                 [--output {fancy_grid,github,grid,html,jira,latex,latex_booktabs,latex_raw,mediawiki,moinmoin,orgtbl,pipe,plain,presto,psql,rst,simple,textile,tsv,youtrack}]
                                 dag_id
   
   positional arguments:
     dag_id                The id of the dag
   
   optional arguments:
     -h, --help            show this help message and exit
     --no_backfill         filter all the backfill dagruns given the dag id
     --state STATE         Only list the dag runs corresponding to the state
     --output {fancy_grid,github,grid,html,jira,latex,latex_booktabs,latex_raw,mediawiki,moinmoin,orgtbl,pipe,plain,presto,psql,rst,simple,textile,tsv,youtrack}
                           Output table format. The specified value is passed to the tabulate module (https://pypi.org/project/tabulate/). Valid values are: (fancy_grid|github|grid|html|jira|latex|latex_booktabs|latex_raw|mediawiki|moinmoin|orgtbl|pipe|plain|presto|psql|rst|simple|textile|tsv|youtrack)
   root@d8257ffc347b:/opt/airflow# airflow dags list_runs tutorial --output jira
   /opt/airflow/airflow/models/dagbag.py:21: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
     import imp
   [2019-12-09 09:09:51,923] {executor_loader.py:49} INFO - Using executor SequentialExecutor
   [2019-12-09 09:09:51,924] {dagbag.py:399} INFO - Filling up the DagBag from /opt/airflow/tests/dags
   [2019-12-09 09:09:52,144] {test_task_view_type_check.py:49} INFO - class_instance type: <class 'unusual_prefix_5d280a9b385120fec3c40cfe5be04e2f41b6b5e8_test_task_view_type_check.CallableClass'>
   [2019-12-09 09:09:52,212] {dagbag.py:268} INFO - File /opt/airflow/tests/dags/test_zip.zip assumed to contain no DAGs. Skipping.
   
   | 42 | scheduled__2019-12-08T00:00:00+00:00 | running | tutorial | 2019-12-08T00:00:00+00:00 | 2019-12-09T09:09:00.142491+00:00 |
   |  3 | scheduled__2019-12-07T00:00:00+00:00 | running | tutorial | 2019-12-07T00:00:00+00:00 | 2019-12-09T09:08:42.382330+00:00 |
   root@d8257ffc347b:/opt/airflow# airflow dags list_runs tutorial --output psql
   /opt/airflow/airflow/models/dagbag.py:21: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
     import imp
   [2019-12-09 09:10:03,479] {executor_loader.py:49} INFO - Using executor SequentialExecutor
   [2019-12-09 09:10:03,481] {dagbag.py:399} INFO - Filling up the DagBag from /opt/airflow/tests/dags
   [2019-12-09 09:10:03,655] {test_task_view_type_check.py:49} INFO - class_instance type: <class 'unusual_prefix_5d280a9b385120fec3c40cfe5be04e2f41b6b5e8_test_task_view_type_check.CallableClass'>
   [2019-12-09 09:10:03,705] {dagbag.py:268} INFO - File /opt/airflow/tests/dags/test_zip.zip assumed to contain no DAGs. Skipping.
   
   +----+--------------------------------------+---------+----------+---------------------------+----------------------------------+
   | 42 | scheduled__2019-12-08T00:00:00+00:00 | running | tutorial | 2019-12-08T00:00:00+00:00 | 2019-12-09T09:09:00.142491+00:00 |
   |  3 | scheduled__2019-12-07T00:00:00+00:00 | running | tutorial | 2019-12-07T00:00:00+00:00 | 2019-12-09T09:08:42.382330+00:00 |
   +----+--------------------------------------+---------+----------+---------------------------+----------------------------------+
   root@d8257ffc347b:/opt/airflow# airflow dags list_runs tutorial --output tsv
   /opt/airflow/airflow/models/dagbag.py:21: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
     import imp
   [2019-12-09 09:10:11,667] {executor_loader.py:49} INFO - Using executor SequentialExecutor
   [2019-12-09 09:10:11,668] {dagbag.py:399} INFO - Filling up the DagBag from /opt/airflow/tests/dags
   [2019-12-09 09:10:11,867] {test_task_view_type_check.py:49} INFO - class_instance type: <class 'unusual_prefix_5d280a9b385120fec3c40cfe5be04e2f41b6b5e8_test_task_view_type_check.CallableClass'>
   [2019-12-09 09:10:11,912] {dagbag.py:268} INFO - File /opt/airflow/tests/dags/test_zip.zip assumed to contain no DAGs. Skipping.
   
   42	scheduled__2019-12-08T00:00:00+00:00	running	tutorial	2019-12-08T00:00:00+00:00	2019-12-09T09:09:00.142491+00:00
    3	scheduled__2019-12-07T00:00:00+00:00	running	tutorial	2019-12-07T00:00:00+00:00	2019-12-09T09:08:42.382330+00:00
   ```

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


With regards,
Apache Git Services