AnandInguva commented on a change in pull request #16589:
URL: https://github.com/apache/beam/pull/16589#discussion_r791342605
##########
File path: sdks/python/apache_beam/runners/worker/sdk_worker_main.py
##########
@@ -87,17 +88,18 @@ def create_harness(environment, dry_run=False):
_LOGGER.info('semi_persistent_directory: %s', semi_persistent_directory)
_worker_id = environment.get('WORKER_ID', None)
- try:
- _load_main_session(semi_persistent_directory)
- except CorruptMainSessionException:
- exception_details = traceback.format_exc()
- _LOGGER.error(
- 'Could not load main session: %s', exception_details, exc_info=True)
- raise
- except Exception: # pylint: disable=broad-except
- exception_details = traceback.format_exc()
- _LOGGER.error(
- 'Could not load main session: %s', exception_details, exc_info=True)
+ if pickle_library != pickler.USE_CLOUDPICKLE:
Review comment:
It should work now and in the future as long as there is a variable
USE_CLOUDPICKLE in the pickler.py.
--
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]