Skip to content

Commit

Permalink
Miscellaneous changes
Browse files Browse the repository at this point in the history
  • Loading branch information
subhashb committed Aug 13, 2024
1 parent 01549e7 commit 9951d53
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ nav:

- Domain Model:
- Compose a Domain:
- guides/compose-a-domain/index.md
- guides/compose-a-domain/register-elements.md
- guides/compose-a-domain/initialize-domain.md
- guides/compose-a-domain/activate-domain.md
Expand Down
2 changes: 1 addition & 1 deletion src/protean/server/broker_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async def shutdown(self):
None
"""
self.keep_going = False # Signal to stop polling
logger.info(f"Shutting down subscription {self.subscriber_id}")
logger.debug(f"Shutting down subscription {self.subscriber_id}")

async def get_next_batch_of_messages(self):
"""
Expand Down
5 changes: 3 additions & 2 deletions src/protean/server/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def run(self):
"""
Start the Protean Engine and run the subscriptions.
"""
logger.info("Starting Protean Engine...")
logger.debug("Starting Protean Engine...")
# Handle Signals
signals = (signal.SIGHUP, signal.SIGTERM, signal.SIGINT)
for s in signals:
Expand Down Expand Up @@ -270,7 +270,8 @@ def handle_exception(loop, context):
# Then immediately call and await the shutdown directly
self.loop.run_until_complete(self.shutdown())
else:
logger.info("Protean Engine is running...")
self.loop.run_forever()
finally:
self.loop.close()
logger.debug("Successfully shutdown Protean Engine.")
logger.info("Protean Engine has stopped.")
2 changes: 1 addition & 1 deletion src/protean/server/subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ async def shutdown(self):
"""
self.keep_going = False # Signal to stop polling
await self.update_current_position_to_store()
logger.info(f"Shutting down subscription {self.subscriber_id}")
logger.debug(f"Shutting down subscription {self.subscriber_id}")

async def fetch_last_position(self):
"""
Expand Down

0 comments on commit 9951d53

Please sign in to comment.