AdrS commented on code in PR #34698:
URL: https://github.com/apache/beam/pull/34698#discussion_r2054468352
##########
sdks/python/apache_beam/internal/dill_pickler.py:
##########
@@ -376,9 +377,16 @@ def new_log_info(msg, *args, **kwargs):
logging.getLogger('dill').setLevel(logging.WARN)
-def dumps(o, enable_trace=True, use_zlib=False) -> bytes:
+def dumps(
+ o,
+ enable_trace=True,
+ use_zlib=False,
+ enable_best_effort_determinism=False) -> bytes:
"""For internal use only; no backwards-compatibility guarantees."""
with _pickle_lock:
+ if enable_best_effort_determinism:
+ dill.dill.pickle(set, save_set)
Review Comment:
Yes. Good catch! I revised the code to save and restore the previous
settings.
--
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]