I ran into a bit of an issue with migrating python extensions from v1 to v2 regarding the endpoint configuration.
The migration docs mention: “You can find and replace all self.config. entries with self.activation_config.”
That led to empty fields and when checking out the activation_config I saw it has an array of endpoints with the config values.
That matches the example from Creating a Python extension, where it is iterated over the endpoints from self.activation_config[“endpoints”] in the query method.
That would be a bigger change from v1 though, where the extension only knows about its current endpoint. And for a lot of extensions, I wouldn’t be able to finish all endpoints in the 1 Minute query window.
Is this just a discrepancy in the docs or am I missing something else here?
Hope someone has a quick pointer, I wasn’t able to find anything else in the docs.
You’d indeed have to add the endpoint loop if you want to have more than one endpoint in a monitoring configuration. If you only want one endpoint then that is fine as well. Keep in mind that in EF2.0 there is no 1 minute limitation anymore. Even more, each endpoint runs in its own thread so it’s not subsequent.