Ricardo Garcia Silva created AIRFLOW-4049:
---------------------------------------------

             Summary: Provide option to output result as JSON for CLI commands
                 Key: AIRFLOW-4049
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-4049
             Project: Apache Airflow
          Issue Type: Improvement
          Components: cli
    Affects Versions: 1.10.2
            Reporter: Ricardo Garcia Silva


The airflow CLI is great for managing DAGs in a CLI environment. However, due 
to the free format used for its outputs, it is not very friendly for 
programmatic uses or integration testing.

It would be very nice if all airflow CLI commands provided an option to control 
the output format of their result and included a JSON output option.

This would allow an external program to perform CLI commands and easily parse 
their results.

My current use case is:
 - I am preparing integration tests with a DAG that is run with an external 
trigger
 - I need to
 ** Un-pause the DAG
 ** Run it
 ** Wait until it has finished - for this I need to call
{code:java}
airflow list_dag_runs{code}
CLI command and parse its result in order to verify if the DAG is still running 
or not.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to