Replies: 2 comments 9 replies
-
Completely agree, I was suggesting the same, but maybe it wasn't clear in #904 (comment) |
Beta Was this translation helpful? Give feedback.
9 replies
-
FYI @frequenz-floss/python-sdk-team |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Coming from #904 (review).
Currently when 2 identical requests are made to the power manager via the high-level interface (same set of components with the same priority), a warning is logged and both requests will have a deterministic but unknown priority between them (one will win, the user just don't know which one). This could lead to undesired behavior if it was done unintentionally, which could lead to problems that are hard to anticipate.
One alternative approach would be to reject the second request (by raising an exception), as suggested in #904 (comment), but there is the concern that this could lead to unnecessary crashes (#904 (comment)).
One thing that could make things worse is there is a default priority, which means users not explicitly setting a priority can potentially be hit by this at any time, as some other actor might be using the same set of components and not specifying a priority either. Maybe a way to make this less likely could be to always require passing a priority.
Follow-up issues
xxx_pool()
functions tonew_xxx_pool()
#915priority
argument forxxx_pool()
required #916Beta Was this translation helpful? Give feedback.
All reactions