You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit renames context_managers to invocation_context_managers to better reflect that the lifetime of the context manager is bound to an invocation (attempt)
Copy file name to clipboardExpand all lines: python/restate/service.py
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,7 @@ class Service:
68
68
NOTE: You can set this field only if you register this service against restate-server >= 1.4,
69
69
otherwise the service discovery will fail.
70
70
invocation_retry_policy (InvocationRetryPolicy, optional): Retry policy applied for all invocations to this service.
71
+
invocation_context_managers (List[Callable[[], AsyncContextManager[None]]], optional): List of context manager factories that will be applied to each invocation of this service.
Copy file name to clipboardExpand all lines: python/restate/workflow.py
+19-9Lines changed: 19 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,7 @@ class Workflow:
76
76
NOTE: You can set this field only if you register this service against restate-server >= 1.4,
77
77
otherwise the service discovery will fail.
78
78
invocation_retry_policy (InvocationRetryPolicy, optional): Retry policy applied for all invocations to this workflow.
79
+
invocation_context_managers (List[Callable[[], AsyncContextManager[None]]], optional): List of context manager factories that will be applied to each invocation of this workflow.
NOTE: You can set this field only if you register this service against restate-server >= 1.4,
245
252
otherwise the service discovery will fail.
246
253
invocation_retry_policy (InvocationRetryPolicy, optional): Retry policy applied for all invocations to this handler.
254
+
invocation_context_managers (List[Callable[[], AsyncContextManager[None]]], optional): List of context manager factories that will be applied to each invocation of this handler.
0 commit comments