Quick start

We assume that you have already installed python 3.7, latest pip, latest setuptools and docker that has access to pull images from the DockerHub. If something is missing or should be updated refer to the How to install or What if is doesn’t work sections.

  1. Install CWL-airflow

    $ pip3 install cwl-airflow
    
  2. Configure CWL-airflow

    $ cwl-airflow init
    
  3. Get some workflows to run, for example from SciDAP

    $ git clone https://github.com/datirium/workflows.git --recursive
    
  4. In a separate terminals start Airflow Webserver, Scheduler and our API

    $ airflow scheduler
    $ airflow webserver
    $ cwl-airflow api
    
  5. Schedule execution of a sample pipeline. Set the workflow number with --range

    $ cwl-airflow test --suite workflows/tests/conformance_tests.yaml --range 1
    
  6. Open Airflow Webserver (by default http://127.0.0.1:8080/admin/) and wait until Airflow Scheduler pick up a new DAG (by default every 5 min) and execute it. On completion all results and temporary files will be removed, so you can safely schedule other workflows by setting different values to --range parameter. Take a look at the How to use section for more details.

../_images/screen.png