Skip to content

Commit

Permalink
updated comment
Browse files Browse the repository at this point in the history
  • Loading branch information
PietroPasotti committed Nov 14, 2024
1 parent f054034 commit c88d7c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cosl/coordinated_workers/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,9 @@ def _update_cluster_relation(self) -> None:
try:
self.cluster.publish_app_roles(self.roles)
except ModelError as e:
# if we are handling an event prior to 'start', we could be denied write access
# hopefully we can ignore it and trust that it will be retried at the next occasion
# if we are handling an event prior to 'install', we could be denied write access
# Swallowing the exception here relies on the reconciler pattern - this will be
# retried at the next occasion and eventually that'll be after 'install'.
if "ERROR permission denied (unauthorized access)" in e.args:
logger.debug(
"relation-set failed with a permission denied error. "
Expand Down

0 comments on commit c88d7c2

Please sign in to comment.