Skip to main content

Light python framework for AWS SWF

Project description

Light python framework for AWS SWF

Project

Focus of this project

Similar projects exists (like Simpleflow which seems mature). Here is where Caravan differs from existing projects:

  • Support of AWS Lambda tasks

  • Boto3

  • KISS

  • Bring your own workflow framework (standard implementations as contribs)

  • No coupling between Decider code and Activity code

  • Paster compatible config file

Features

  • Decider worker

  • Activity task worker

  • Commands to start/signal/terminate an arbitrary workflow execution

  • Command to list open workflow execution

  • Command to register a domain

Usage

Setup a SWF for the example:

$ caravan-domain-register -n CaravanExample --retention-days 1

List open execution for last 24h:

$ caravan-list -d CaravanExample

List open execution for year 2015:

$ caravan-list -d CaravanExample --oldest 2015-01-01

Run the decider:

$ caravan-decider -d CaravanExample -m caravan.examples.demo -t default

Start an execution:

$ caravan-start -d CaravanExample -n Demo -v 0.1 -i 1

Send a signal to an execution:

$ caravan-signal -d CaravanExample -i 1 -s PAYMENT_CONFIRMED

Terminate an execution:

$ caravan-terminate -d CaravanExample -i 1

Similar projects

Python:

Ruby:

Development

Clone and install development dependencies:

$ git clone git@github.com:pior/caravan.git
$ cd caravan
$ pip install -e .[dev]

Run tests:

$ py.test

Release

The release process use zest.releaser:

$ fullrelease

License

MIT licensed. See the bundled LICENSE file for more details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

caravan-0.1.3.tar.gz (11.1 kB view details)

Uploaded Source

Built Distribution

caravan-0.1.3-py2-none-any.whl (18.0 kB view details)

Uploaded Python 2

File details

Details for the file caravan-0.1.3.tar.gz.

File metadata

  • Download URL: caravan-0.1.3.tar.gz
  • Upload date:
  • Size: 11.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for caravan-0.1.3.tar.gz
Algorithm Hash digest
SHA256 9cdd2daaeb1e195b0169addb717167635b9eac1e156d443d18fa367be54db843
MD5 cffcc46aaf86ba7a5441991c4e5ea1cd
BLAKE2b-256 af381d9930bfac92d1760c92cb40d8b6429adc6a5b239ae5a2791523a1a8f9e4

See more details on using hashes here.

Provenance

File details

Details for the file caravan-0.1.3-py2-none-any.whl.

File metadata

File hashes

Hashes for caravan-0.1.3-py2-none-any.whl
Algorithm Hash digest
SHA256 feeeb634f53628a7aacd3bebbc5f920bbe935b4a723f932ed59df0557021e8d3
MD5 71d70026efb5de5d9f45da3159b84370
BLAKE2b-256 4fcea2c47a25314498647b659ba28d8279d0183a2dc571b4f2f0328c05fa1ad7

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page