taran.starter

Starter([configuration]) Class that defines instances of starter that are used to perform checks and then execute a workflow.

This module provides a class that abstracts the configuration and the SWF ‘start_workflow_execution’ operation.

class taran.starter.Starter(configuration=None)[source]

Class that defines instances of starter that are used to perform checks and then execute a workflow.

ensure_activity_type_exists(activity_name=None, activity_version=None, activity_task_list=None)[source]

Check the activity type exists and create it if it doesn’t.

Parameters:
  • activity_name (unicode) –
  • activity_version (unicode) –
  • activity_task_list (unicode) –
ensure_domain_exists(domain_name=None)[source]

Return true if specified domain exists, otherwise create it.

ensure_workflow_type_exists(workflow_name=None, workflow_version=None)[source]

Check the workflow type exists and create it if it doesn’t.

Parameters:
  • workflow_name (unicode) –
  • workflow_version (unicode) –
start_workflow()[source]

Start the workflow.