A harness for debugging workflows.
Last updated 3 years ago by kkelly51 .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @cumulus-test/task-debug 
SYNC missed versions from official npm registry.

Task Debug Harness

This package provides an executable that can run a workflow defined in a yml file to aid in development and debugging. The yml file format is the same as the format used for deployments.

The executable parses the yml file to identify the defined workflows and dynamically loads and executes the tasks for the designated workflow. Output from each task is used to construct the message payload for the subsequent task. Be advised that although the tasks are running locally, any calls they make using the AWS SDK (e.g., writing to S3 buckets) will execute in AWS.

This can be run easily in a JS debugger to allow step debugging and examination of internal state within tasks.


node src/index.js debugg -c <collection-id> -b <s3-bucket> -w <workflow> <config-file>


  • collection-id - ID of the collection defined in the yml config file to use
  • s3-bucket - S3 bucket to be used as a data-source, e.g., git-private
  • workflow - Which step function defined in the yml config file to use
  • config-file - The path to the yml file that defines the configuration for the workflow. Currently this option is ignored and the file test-collections.yml in packages/common/test/config is always used.


  • Currently only linear workflows are supported, e.g., no branching, but it should be pretty simple to add branching support later.
  • Because of the dynamic loading of tasks it is recommend to use node 8 without transpiling when debugging to avoid the need to generate and deal with source maps

Current Tags

  • 1.2.0-alpha.c0ebdcd8                                ...           canary (3 years ago)
  • 1.0.2-beta.0                                ...           latest (3 years ago)

7 Versions

  • 1.2.0-alpha.c0ebdcd8                                ...           3 years ago
  • 1.1.0-alpha.c0ebdcd8                                ...           3 years ago
  • 1.0.2-beta.8a155f42                                ...           3 years ago
  • 1.0.2-beta.0                                ...           3 years ago
  • 1.0.2                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (2)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 5
Dependencies (2)
Dev Dependencies (5)
Dependents (0)

Copyright 2014 - 2017 © taobao.org |