bw2 / step-pipeline

This library is a thin layer over Hail Batch that adds features like skipping steps whose output files have already been generated, additional options for localizing files, notifications on pipeline completion, etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

step-pipeline

This library serves as a thin layer on top of Hail Batch (and eventually other execution engines) to provide the following features:

  • Skip steps that already ran and completed successfully (eg. their output files already exist and are newer than their input files). This is done prior to submitting the pipeline to the execution engine.
  • Make it easier to switch between different ways of localizing files (copy, gcsfuse, etc.) with minimal changes to pipeline code
  • Automatically define pipeline command-line args to force or skip execution of paticular steps
  • Use a config file to store various pipeline parameters (eg. cloud project account, etc.)
  • Add commands for sending pipeline completion notifications to Slack
  • Add commands for profiling pipeline steps while they are running, and saving this info to external storage
  • Generate a diagram of the pipeline execution graph (DAG)

Another longer-term goal is to allow the same pipeline definition to be submitted to different backends with minimal changes - including Hail Batch, Terra/Cromwell, and others. This can only work for pipelines that use the subset of workflow definition features that is shared across the relevant execution engines.


Installation

To install the step-pipeline library, run:

python3 -m pip install step-pipeline

Docs

API docs


About

This library is a thin layer over Hail Batch that adds features like skipping steps whose output files have already been generated, additional options for localizing files, notifications on pipeline completion, etc.

License:MIT License


Languages

Language:Python 99.9%Language:Shell 0.1%