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
Instead of using host and port, we now use a URL. The following format
is expected: `grpc://hostname{:port}{?ssl=ssl}`, where the port should
be an int between `0` and `65535` (defaulting to `9090`) and `ssl`
should be a boolean (defaulting to `false`). For example:
`grpc://localhost:1090?ssl=true`.
This also removes the default host and port, as normally users always
want to override it.
Signed-off-by: Leandro Lucarella <[email protected]>
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,15 @@
12
12
13
13
- The `microgrid.*_pool` methods would only accept keyword arguments from now on.
14
14
15
+
- The `microgrid.initialize()` method now takes a `server_url` instead of a `host` and `port`.
16
+
17
+
The following format is expected: `grpc://hostname{:port}{?ssl=ssl}`, where the port should be an int between `0` and `65535` (defaulting to `9090`) and `ssl` should be a boolean (defaulting to `false`). For example: `grpc://localhost` or `grpc://localhost:1090?ssl=true`.
18
+
19
+
The default was also removed, so you always need to specify the server URL.
20
+
21
+
This applies to the `ConnectionManager` as well, which also now doesn't expose the `host` and `port` attributes, only the `server_url`. If you need to extract the host or port from the `server_url`, you can use the standard Python `urllib.parse.urlparse()` function.
22
+
23
+
15
24
## New Features
16
25
17
26
- Calls to `microgrid.*_pool` methods now accept an optional `in_shifting_group` parameter. Power requests sent to `*_pool` instances that have the `in_shifting_group` flag set, will get resolved separately, and their target power will be added to the target power calculated from regular actors, if any, which would, in effect, shift the zero for the regular actors by the target power from the shifting group.
0 commit comments