Tags¶
Tags are free-form strings associated with a workflow execution by SWF, useful for filtering. They can be specified in several ways:
- when starting the workflow, with the
--tags
option ofsimpleflow workflow.start
ortag_list
argument ofworkflow_type.start_execution
- in the workflow class definition: either a
tag_list
class variable or aget_tag_list(cls, *args, **kwargs)
class method
Reusing a workflow parent’s tag list is a common use case. The special
variable Workflow.INHERIT_TAG_LIST
allows this.
from simpleflow import Workflow
class MyChildWorkflow(Workflow):
...
tag_list = Workflow.INHERIT_TAG_LIST