Skip to content

Commit

Permalink
Explain the retry behaviour of secret-remote events.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyandrewmeyer committed Jun 20, 2024
1 parent f331fb6 commit 4f70c5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ops/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,9 +905,10 @@ class SecretRemoveEvent(SecretEvent):
observers have updated to that new revision, this event will be fired to
inform the secret owner that the old revision can be removed.
Typically, the charm will call
After any required cleanup, the charm should call
:meth:`event.secret.remove_revision() <ops.Secret.remove_revision>` to
remove the now-unused revision.
remove the now-unused revision. If the charm does not, then the event will
be emitted again, when further revisions are ready for removal.
"""

def __init__(self, handle: 'Handle', id: str, label: Optional[str], revision: int):
Expand Down

0 comments on commit 4f70c5f

Please sign in to comment.