Skip to content

Commit

Permalink
docs: add docstring for BaseRunner.run method
Browse files Browse the repository at this point in the history
  • Loading branch information
fubuloubu committed Sep 18, 2023
1 parent 9ab5f63 commit 7bfccb2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions silverback/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ async def _event_task(
"""

async def run(self):
"""
Run the task broker client for the assembled `SilverbackApp` application.
Will listen for events against the connected provider (using `ManagerAccessMixin` context),
and process them by kicking events over to the configured broker.
Raises:
SilverbackException: If there are no configured tasks to execute.
"""
await self.app.broker.startup()

if block_handler := self.app.get_block_handler():
Expand Down

0 comments on commit 7bfccb2

Please sign in to comment.