Skip to content

Commit

Permalink
Make 'control' the last parameter for all relevant decisions
Browse files Browse the repository at this point in the history
  • Loading branch information
EpicWink committed Nov 8, 2021
1 parent ad606a9 commit b1b1c55
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/swf_typed/_decisions.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,12 @@ class ScheduleActivityTaskDecision(Decision):
task_input: str = None
"""Task input."""

control: str = None
"""Message for future deciders."""

task_configuration: "_tasks.PartialTaskConfiguration" = None
"""Task configuration overrides."""

control: str = None
"""Message for future deciders."""

def to_api(self):
data = super().to_api()
data["scheduleActivityTaskDecisionAttributes"] = decision_attributes = {
Expand Down Expand Up @@ -258,12 +258,12 @@ class ScheduleLambdaFunctionDecision(Decision):
task_input: str = None
"""Lambda function input."""

control: str = None
"""Message for future deciders."""

task_timeout: datetime.timedelta = _common.unset
"""Lambda function invocation timeout."""

control: str = None
"""Message for future deciders."""

def to_api(self):
data = super().to_api()
data["scheduleLambdaFunctionDecisionAttributes"] = decision_attributes = {
Expand Down Expand Up @@ -333,12 +333,12 @@ class StartChildWorkflowExecutionDecision(Decision):
execution_configuration: "_executions.PartialExecutionConfiguration" = None
"""Child execution configuration overrides."""

control: str = None
"""Message for future deciders."""

tags: t.List[str] = None
"""Child execution tags"""

control: str = None
"""Message for future deciders."""

def to_api(self):
data = super().to_api()
data["startChildWorkflowExecutionDecisionAttributes"] = decision_attributes = {
Expand Down

0 comments on commit b1b1c55

Please sign in to comment.