eemario opened a new issue, #1417: URL: https://github.com/apache/flink-agents/issues/1417
### Search before asking - [x] I searched in the [issues](https://github.com/apache/flink-agents/issues) and found nothing similar. ### Description `PythonSerializableResourceProvider.provide()` injects `resource_context` only when deserializing a resource. When it already holds a registered instance, it returns that instance without binding the supplied context. This makes the two paths inconsistent and can cause dependency lookup in `open()` to fail during direct provider or in-memory plan usage. No affected standard Python Flink production path has been identified: the current root and child runtime paths deserialize their plans before resolving resources. Proposed fix: deserialize the resource if needed, then bind the context unconditionally before returning, matching `JavaSerializableResourceProvider`. Keep runtime context out of `self.serialized` and add regression tests covering both paths. ### Are you willing to submit a PR? - [x] I'm willing to submit a PR! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
