ryanthompson591 commented on a change in pull request #16250:
URL: https://github.com/apache/beam/pull/16250#discussion_r780511727
##########
File path: sdks/python/apache_beam/internal/cloudpickle_pickler.py
##########
@@ -99,6 +103,14 @@ def _create_absl_flags():
return flags.FLAGS
+def _pickle_rlock(obj):
+ return _create_rlock, tuple([])
+
+
+def _create_rlock():
+ return RLOCK_TYPE()
Review comment:
I actually looked at this a bit more. The reduce function can return a
(type, parameters) or (function, parameters)
I was using the (function, parameters) but upon experimentation I realized I
could simplify this by just using the type.
--
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]