apache / apache/beam

sdk_worker_main needlessly warns about missing main session file

Open
#20,386 0 comments 0 reactions 0 assignees View on GitHub
bug core P3 python
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

If \--save_main_session is not used, _load_main_session will emit a warning:

```

No session file found: //pickled_main_session. Functions defined in __main__ (interactive session)
may fail.

```

Perhaps make this info level if \--save_main_session wasn't passed?
Aside: Is it safe to parse options before _load_main_session?

Also, what does "interactive session" mean here? The wording is from a 2017 commit (by [~altay]), and the new interactive runner comes to mind now instead.

Imported from Jira [BEAM-10299](https://issues.apache.org/jira/browse/BEAM-10299). Original Jira may contain additional context.
Reported by: udim.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.