Harden detached worker module startup
This commit is contained in:
parent
5b43c44dd7
commit
d65b83a140
3 changed files with 12 additions and 3 deletions
8
src/docforge/_projection_worker_main.py
Normal file
8
src/docforge/_projection_worker_main.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
"""Private module entry point for the detached projection worker."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from .projection_worker import main
|
||||
|
||||
if __name__ == "__main__":
|
||||
raise SystemExit(main())
|
||||
|
|
@ -201,7 +201,7 @@ def _invoke_worker(request: bytes) -> subprocess.CompletedProcess[bytes]:
|
|||
"PYTHONUTF8": "1",
|
||||
}
|
||||
)
|
||||
command = [sys.executable, "-I", "-m", "docforge.projection_worker"]
|
||||
command = [sys.executable, "-I", "-m", "docforge._projection_worker_main"]
|
||||
with tempfile.TemporaryFile() as output:
|
||||
completed = subprocess.run(
|
||||
command,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue