Skip to content

Commit 7e1fc7b

Browse files
committed
Satisfy pydocstyle linter
1 parent 5213d84 commit 7e1fc7b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

temporalio/worker/_workflow_instance.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2739,17 +2739,21 @@ class _WorkflowBeingEvictedError(BaseException):
27392739

27402740
@dataclass
27412741
class HandlerExecution:
2742+
"""Information about an execution of a signal or update handler."""
27422743
name: str
27432744
unfinished_handlers_policy: temporalio.workflow.UnfinishedHandlersPolicy
27442745
id: Optional[str] = None
27452746

27462747

27472748
class UnfinishedUpdateHandlerWarning(RuntimeWarning):
2749+
"""Warning issued when a workflow exits before an update handler has finished executing"""
27482750
def __init__(self, handler_executions: List[HandlerExecution]) -> None:
2751+
"""Initialize warning object"""
27492752
super().__init__()
27502753
self.handler_executions = handler_executions
27512754

27522755
def __str__(self) -> str:
2756+
"""Return warning message"""
27532757
message = """
27542758
Workflow finished while update handlers are still running. This may have interrupted work that the
27552759
update handler was doing, and the client that sent the update will receive a 'workflow execution
@@ -2771,11 +2775,14 @@ def __str__(self) -> str:
27712775

27722776

27732777
class UnfinishedSignalHandlerWarning(RuntimeWarning):
2778+
"""Warning issued when a workflow exits before a signal handler has finished executing"""
27742779
def __init__(self, handler_executions: List[HandlerExecution]) -> None:
2780+
"""Initialize warning object"""
27752781
super().__init__()
27762782
self.handler_executions = handler_executions
27772783

27782784
def __str__(self) -> str:
2785+
"""Return warning message"""
27792786
message = """
27802787
Workflow finished while signal handlers are still running. This may have interrupted work that the
27812788
signal handler was doing. You can wait for all update and signal handlers to complete by using

0 commit comments

Comments
 (0)