Skip to main content

cwl-airflow-parser

About

Extends Apache-Airflow with CWL v1.0 support.

Installation

pip3.6 install -U cwl-airflow-parser

Requirements

Package has been tested on Ubuntu 16.04.3 and Mac OS X Sierra/ High Sierra. Make sure your system satisfies the following criteria:

Usage

from cwl_airflow_parser import CWLDAG, CWLJobDispatcher, CWLJobGatherer
from datetime import timedelta

def cwl_workflow(workflow_file):
    dag = CWLDAG(default_args={
        'owner': 'airflow',
        'email': ['my@email.com'],
        'email_on_failure': False,
        'email_on_retry': False,
        'retries': 20,
        'retry_exponential_backoff': True,
        'retry_delay': timedelta(minutes=30),
        'max_retry_delay': timedelta(minutes=60 * 4)
    },
        cwl_workflow=workflow_file)
    dag.create()
    dag.add(CWLJobDispatcher(dag=dag), to='top')
    dag.add(CWLJobGatherer(dag=dag), to='bottom')

    return dag
 
cwl_workflow("/path/to/my/workflow.cwl")

Release files for cwl-airflow-parser 1.0.20180918220755

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cwl-airflow-parser 1.0.20180918220755
File Size Uploaded
cwl-airflow-parser-1.0.20180918220755.tar.gz 9.6 kB Details

Release files / cwl-airflow-parser-1.0.20180918220755.tar.gz

Download URL cwl-airflow-parser-1.0.20180918220755.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6c43cd4b90765dfee29f3886bbfb6be66130d52378a31bd75bbd534d73f0412a
BLAKE2b-256 checksum
How to use checksums
a220b4615867ef465ed16c559a181eb7d654ac41713ae29bfb6c1ef7093c3860
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page