You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a non-state predicate (such as @when_file_changed) is combined with a state predicate (e.g., @when), the handler will not be reinvoked if the states have not changed, even if the non-state predicates have.
Systemd was not relying being reloaded when the definition
file for aodh-api changed. The reload was supposed to be
triggered by the when_file_changed decorator. However,
there are a number of issues with when_file_changed decorator (*1,
*2, *3) and the decorator has now been deprecated *4.
This change ensures the reload happens without relying on
the decorator.
*1 canonical/charms.reactive#25
*2 canonical/charms.reactive#44
*3 canonical/charms.reactive#49
*4 canonical/charms.reactive#44 (comment)
Closes-Bug: #1850767
Change-Id: I7c528a53a4de8a4a85bf655fc242b0f38fd0754b
* Update charm-aodh from branch 'master'
- Do not rely on when_file_change for systemd reload
Systemd was not relying being reloaded when the definition
file for aodh-api changed. The reload was supposed to be
triggered by the when_file_changed decorator. However,
there are a number of issues with when_file_changed decorator (*1,
*2, *3) and the decorator has now been deprecated *4.
This change ensures the reload happens without relying on
the decorator.
*1 canonical/charms.reactive#25
*2 canonical/charms.reactive#44
*3 canonical/charms.reactive#49
*4 canonical/charms.reactive#44 (comment)
Closes-Bug: #1850767
Change-Id: I7c528a53a4de8a4a85bf655fc242b0f38fd0754b
If a non-state predicate (such as
@when_file_changed
) is combined with a state predicate (e.g.,@when
), the handler will not be reinvoked if the states have not changed, even if the non-state predicates have.Ref: charms/reactive/bus.py#L262
The text was updated successfully, but these errors were encountered: