claudevdm commented on code in PR #35904:
URL: https://github.com/apache/beam/pull/35904#discussion_r2417043894


##########
sdks/python/apache_beam/internal/cloudpickle/cloudpickle.py:
##########
@@ -1305,6 +1326,23 @@ class Pickler(pickle.Pickler):
 
   dispatch_table = ChainMap(_dispatch_table, copyreg.dispatch_table)
 
+  def _stable_identifier_function_reduce(self, func):
+    code_path = self.config.get_code_object_params.get_code_object_identifier(
+        func)
+    if not code_path:
+      return self._dynamic_function_reduce(func)
+    newargs = (code_path, )

Review Comment:
   I think the issue here. newargs need to contain `newargs = (code_path, 
globals, name, argdefs, closure)`, because those are passed to 
_make_function_from_identifier



-- 
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]

Reply via email to