Skip to content

Commit

Permalink
add some time for settling down
Browse files Browse the repository at this point in the history
  • Loading branch information
deusebio committed Dec 6, 2023
1 parent 69b8460 commit 79a5ca0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"""Manager for handling Kafka in-place upgrades."""

import logging
import time
from typing import TYPE_CHECKING

from charms.data_platform_libs.v0.upgrade import (
Expand Down Expand Up @@ -101,6 +102,9 @@ def _on_upgrade_granted(self, event: UpgradeGrantedEvent) -> None:
logger.info(f"{self.charm.unit.name} upgrading service...")
self.charm.snap.restart_snap_service()

# Allow for some time to settle down
time.sleep(60)

try:
logger.debug("Running post-upgrade check...")
self.post_upgrade_check()
Expand Down

0 comments on commit 79a5ca0

Please sign in to comment.