From 6b09fe57ced89717950cb566f1bc4956270ea160 Mon Sep 17 00:00:00 2001 From: Vadym Moshynskyi Date: Mon, 20 Nov 2023 14:51:26 +0100 Subject: [PATCH 1/3] PILOT-3643: Fix issue with multiprocessing in pyinstaller --- app/pilotcli.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/pilotcli.py b/app/pilotcli.py index 8d882d8e..42cb309c 100644 --- a/app/pilotcli.py +++ b/app/pilotcli.py @@ -2,6 +2,8 @@ # # Contact Indoc Systems for any questions regarding the use of this source code. +from multiprocessing import freeze_support + import click import requests @@ -38,4 +40,5 @@ def cli(): if __name__ == '__main__': + freeze_support() cli() From 1bb1a71298af4f62511422e37bddab97e64169c2 Mon Sep 17 00:00:00 2001 From: Vadym Moshynskyi Date: Mon, 20 Nov 2023 14:56:07 +0100 Subject: [PATCH 2/3] PILOT-3643: Bump version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 73b9a7cf..d373d752 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "app" -version = "2.8.3" +version = "2.8.4" description = "This service is designed to support pilot platform" authors = ["Indoc Systems"] From cb2f9415aad730604380596dcbd0610d7eb455f5 Mon Sep 17 00:00:00 2001 From: Vadym Moshynskyi Date: Mon, 20 Nov 2023 14:59:26 +0100 Subject: [PATCH 3/3] PILOT-3643: Add comment for freeze_support --- app/pilotcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/pilotcli.py b/app/pilotcli.py index 42cb309c..a2a25f12 100644 --- a/app/pilotcli.py +++ b/app/pilotcli.py @@ -40,5 +40,5 @@ def cli(): if __name__ == '__main__': - freeze_support() + freeze_support() # Add support for multiprocessing after bundling with PyInstaller cli()