Coder Social home page Coder Social logo

workflowsvc's Introduction

workflowsvc

The Python Clone of Amazon Simple Workflow Service (http://aws.amazon.com/swf/).

Introduction

workflowsvc implements minimal set of the APIs supported by Simple Workflow Service. It is partly intended as a learning experience.

Dependencies

  • tornado pip install tornado
  • redis.py pip install redis
  • mongodb pip install pymongo

API Reference

Amazon Simple Workflow Service helps coordinate work across distributed components. A task is a logical unit of work that is accomplished by a worker. A decider component arrives at decisions that determines the state of the execution and creates activity tasks that will be queued on tasklist which will be then be assigned to workers. API support for creation and deletion of activity and workflow types gives great flexibility. Inspired by the simplicity of the approach, In this project, I have tried to clone subset of features provided by SWF. Developer Guide and API Reference is great place to know more (http://aws.amazon.com/documentation/swf/)

Supported Actions

  • RegisterWorkFlowType
  • RegisterActivityType
  • StartWorkflowExecution
  • TerminateWorkflowExecution
  • RequestCacnelWorkflowExecution
  • PollForDecisionTask
  • RespondDecisionTaskCompleted
  • PollForActivityTask
  • RespondActivityTaskCompleted

Timeouts

Timeouts for Workflow Execution, Decision Task Start to Close, Activity Task SchedToClose, SchedToStart, StartToClose are completely "honored"

Starting workflowsvc

Before starting the service, a redis server and mongodb has to be started. Start the workflow service, workflowsvc.py,

Sample clients

client/simpleclient.py: This client will cover complete the life cycle of a workflow execution by registering workflow, activity types and starting a workflow execution for which a decider will create a task that will be completed by a worker. Finally, the decider will mark the execution as completed

client/timeoutclient.py: This client will run workflow executions that tests different timeouts honored by the workflowsvc

client/terminateclient.py: This client covers terminating workflow execution abruptly

TODO

  • Visibility Actions
  • Child Workflow
  • Timers
  • Domains
  • Task Cancellation
  • Markers, Tags
  • Signals
  • Versioning

workflowsvc's People

Contributors

srned avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.