We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b08de17 + 7963ecd commit 351fe48Copy full SHA for 351fe48
1 file changed
archipy/adapters/temporal/worker.py
@@ -173,6 +173,10 @@ async def stop(self, grace_period: int = 30) -> None:
173
},
174
) from error
175
176
+ async def wait_until_stopped(self) -> None:
177
+ """Wait until the worker is stopped."""
178
+ await self._background_task
179
+
180
@property
181
def is_running(self) -> bool:
182
"""Check if the worker is currently running.
0 commit comments