Skip to content

Commit

Permalink
Add a note.
Browse files Browse the repository at this point in the history
  • Loading branch information
tvalentyn committed Mar 3, 2023
1 parent 7b49cb0 commit a384f49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sdks/python/apache_beam/runners/worker/sdk_worker_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ def _load_main_session(semi_persistent_directory):
# This can happen if the worker fails to download the main session.
# Raise a fatal error and crash this worker, forcing a restart.
if os.path.getsize(session_file) == 0:
# Potenitally transient error, unclear if still happening.
raise LoadMainSessionException(
'Session file found, but empty: %s. Functions defined in __main__ '
'(interactive session) will almost certainly fail.' %
Expand Down

0 comments on commit a384f49

Please sign in to comment.