seddy.registration

SWF workflow registration.

Functions:

deprecate_workflow(workflow, domain, client)

Deprecate a workflow in SWF.

list_workflows(domain, client)

List all workflows in SWF, including registered and deprecated.

register_workflow(workflow, domain, client)

Register a workflow with SWF.

register_workflows(workflows, domain)

Synchronise workflow registration with SWF.

run_app(workflows_spec_file, domain)

Run registration synchronisation application.

undeprecate_workflow(workflow, domain, client)

Undeprecate a workflow in SWF.

seddy.registration.deprecate_workflow(workflow: seddy._specs._base.Workflow, domain: str, client)[source]

Deprecate a workflow in SWF.

Parameters
  • workflow – specification of workflow to deprecate

  • domain – domain to deprecate workflow in

  • client (botocore.client.BaseClient) – SWF client

seddy.registration.list_workflows(domain: str, client) → Dict[Tuple[str, str], bool][source]

List all workflows in SWF, including registered and deprecated.

Parameters
  • domain – domain to list workflows of

  • client (botocore.client.BaseClient) – SWF client

Returns

names, versions and registration status of workflows in SWF

seddy.registration.register_workflow(workflow: seddy._specs._base.Workflow, domain: str, client)[source]

Register a workflow with SWF.

Parameters
  • workflow – specification of workflow to register

  • domain – domain to register workflow in

  • client (botocore.client.BaseClient) – SWF client

seddy.registration.register_workflows(workflows: List[seddy._specs._base.Workflow], domain: str)[source]

Synchronise workflow registration with SWF.

Parameters
  • workflows – specifications of workflows to register

  • domain – domain to register workflows in

seddy.registration.run_app(workflows_spec_file: pathlib.Path, domain: str)[source]

Run registration synchronisation application.

Parameters
  • workflows_spec_file – workflows specifications file path

  • domain – SWF domain

seddy.registration.undeprecate_workflow(workflow: seddy._specs._base.Workflow, domain: str, client)[source]

Undeprecate a workflow in SWF.

Parameters
  • workflow – specification of workflow to undeprecate

  • domain – domain to undeprecate workflow in

  • client (botocore.client.BaseClient) – SWF client