Skip to content

Commit

Permalink
Make Maintenance status higher-pri than Waiting
Browse files Browse the repository at this point in the history
  • Loading branch information
benhoyt committed Jul 19, 2023
1 parent 694206d commit b920b3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ops/charm.py
Original file line number Diff line number Diff line change
Expand Up @@ -846,8 +846,8 @@ class CollectStatusEvent(EventBase):
* error
* blocked
* waiting
* maintenance
* waiting
* active
* unknown
Expand Down Expand Up @@ -982,7 +982,7 @@ class CharmEvents(ObjectEvents):
"""

collect_app_status = EventSource(CollectStatusEvent)
"""Triggered at the end of every hook on the leader to collect app statuses for evaluation
"""Triggered on the leader at the end of every hook to collect app statuses for evaluation
(see :class:`CollectStatusEvent`).
"""

Expand Down
4 changes: 2 additions & 2 deletions ops/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1596,8 +1596,8 @@ def register(cls, child: Type['StatusBase']):
_priorities = {
'error': 5,
'blocked': 4,
'waiting': 3,
'maintenance': 2,
'maintenance': 3,
'waiting': 2,
'active': 1,
# 'unknown' or any other status is handled below
}
Expand Down

0 comments on commit b920b3a

Please sign in to comment.