psr-factory 5.0.0b12__py3-none-win_amd64.whl → 5.0.0b13__py3-none-win_amd64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- psr/execqueue/server.py +1 -1
- psr/execqueue/watcher.py +7 -3
- psr/factory/__init__.py +1 -1
- psr/factory/factory.dll +0 -0
- {psr_factory-5.0.0b12.dist-info → psr_factory-5.0.0b13.dist-info}/METADATA +2 -1
- {psr_factory-5.0.0b12.dist-info → psr_factory-5.0.0b13.dist-info}/RECORD +9 -9
- {psr_factory-5.0.0b12.dist-info → psr_factory-5.0.0b13.dist-info}/WHEEL +0 -0
- {psr_factory-5.0.0b12.dist-info → psr_factory-5.0.0b13.dist-info}/licenses/LICENSE.txt +0 -0
- {psr_factory-5.0.0b12.dist-info → psr_factory-5.0.0b13.dist-info}/top_level.txt +0 -0
psr/execqueue/server.py
CHANGED
@@ -76,7 +76,7 @@ def run_cloud_case(execution_id: str, case_path: str):
|
|
76
76
|
name="LSEG Server "+ execution_id,
|
77
77
|
data_path=case_path,
|
78
78
|
program="SDDP",
|
79
|
-
program_version = "17.
|
79
|
+
program_version = "17.3.9",
|
80
80
|
execution_type="Default",
|
81
81
|
memory_per_process_ratio='2:1',
|
82
82
|
price_optimized=False,
|
psr/execqueue/watcher.py
CHANGED
@@ -12,7 +12,7 @@ SERVER_URL = os.getenv("SERVER_URL", "http://127.0.0.1:5000")
|
|
12
12
|
WATCH_DIR = os.getenv("WATCH_DIR")
|
13
13
|
PROCESSED_DIR = os.getenv("PROCESSED_DIR")
|
14
14
|
RESULTS_DIR = os.getenv("RESULTS_DIR", "results")
|
15
|
-
SLEEP_SECONDS = int(os.getenv("WATCHER_SLEEP", "
|
15
|
+
SLEEP_SECONDS = int(os.getenv("WATCHER_SLEEP", "30"))
|
16
16
|
DB_PATH = os.getenv("WATCHER_DB_PATH", "watcher.sqlite")
|
17
17
|
|
18
18
|
|
@@ -74,7 +74,7 @@ def _check_and_download_results():
|
|
74
74
|
for row in rows:
|
75
75
|
record_id, filename, cloud_upload_id = row
|
76
76
|
status = execqueue.get_execution_status(cloud_upload_id, SERVER_URL, cloud_execution=True, return_status_id=True)
|
77
|
-
if status == "5" or status == 5:
|
77
|
+
if status == "5" or status == 5:
|
78
78
|
files = execqueue.get_results(cloud_upload_id, SERVER_URL, cloud_execution=True)
|
79
79
|
if files:
|
80
80
|
base_filename = os.path.splitext(filename)[0]
|
@@ -88,6 +88,10 @@ def _check_and_download_results():
|
|
88
88
|
cursor.execute("UPDATE processed_files SET downloaded=1 WHERE id=?", (record_id,))
|
89
89
|
conn.commit()
|
90
90
|
logging.info(f"Results of {cloud_upload_id} downloaded to {download_path}")
|
91
|
+
elif status == "4" or status == 4:
|
92
|
+
logging.info(f"Execution {cloud_upload_id} is finished with errors.")
|
93
|
+
cursor.execute("UPDATE processed_files SET downloaded=4 WHERE id=?", (record_id,))
|
94
|
+
conn.commit()
|
91
95
|
conn.close()
|
92
96
|
|
93
97
|
|
@@ -116,8 +120,8 @@ if __name__ == "__main__":
|
|
116
120
|
|
117
121
|
while True:
|
118
122
|
try:
|
119
|
-
_process_zip_files()
|
120
123
|
_check_and_download_results()
|
124
|
+
_process_zip_files()
|
121
125
|
|
122
126
|
except Exception as e:
|
123
127
|
logging.error(f"Watcher error: {e}", exc_info=True)
|
psr/factory/__init__.py
CHANGED
psr/factory/factory.dll
CHANGED
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: psr-factory
|
3
|
-
Version: 5.0.
|
3
|
+
Version: 5.0.0b13
|
4
4
|
Summary: PSR database management module.
|
5
5
|
Author-email: "PSR Inc." <psrfactory@psr-inc.com>
|
6
6
|
License-Expression: MIT
|
@@ -48,6 +48,7 @@ Requires-Dist: requests; extra == "execqueue-server"
|
|
48
48
|
Provides-Extra: all
|
49
49
|
Requires-Dist: pandas; extra == "all"
|
50
50
|
Requires-Dist: polars; extra == "all"
|
51
|
+
Requires-Dist: psutil; extra == "all"
|
51
52
|
Requires-Dist: zeep; extra == "all"
|
52
53
|
Requires-Dist: filelock; extra == "all"
|
53
54
|
Requires-Dist: pefile; extra == "all"
|
@@ -14,11 +14,11 @@ psr/cloud/xml.py,sha256=ac2lyflOQm8khPvJn0zmI26I4sfUDY6A_OTsxzbMQEs,1896
|
|
14
14
|
psr/execqueue/client.py,sha256=hAhoFPL6xu-o1wtoTtkTp-LCqHdXUohTbCyt9nXkdrQ,4724
|
15
15
|
psr/execqueue/config.py,sha256=3KVwASOgRlymOSPeabotgBdLVB5sPKnPQ9og2q3LQfw,1418
|
16
16
|
psr/execqueue/db.py,sha256=0pH5ksXChz6PR_GQs6OPokK3zVkY1-OZRAqYbVIEh9k,8281
|
17
|
-
psr/execqueue/server.py,sha256=
|
18
|
-
psr/execqueue/watcher.py,sha256=
|
19
|
-
psr/factory/__init__.py,sha256=
|
17
|
+
psr/execqueue/server.py,sha256=ojbiNVI_h3M-HU8dgwdjzkvLeAMLGWzFJhg1rjXHh_k,13931
|
18
|
+
psr/execqueue/watcher.py,sha256=q9ceq119OW-gEnEt5aAvbiGHtN8H3c0s-j2H_1rCXII,5060
|
19
|
+
psr/factory/__init__.py,sha256=Se7s9WOKQuJv_s9CJeQCYc04sDTkMx3tmTeCH0hwd7M,219
|
20
20
|
psr/factory/api.py,sha256=S7xoNxSKkyPEGtOLa_jBah59Edn39_wtoVQUrwrA6uk,100481
|
21
|
-
psr/factory/factory.dll,sha256=
|
21
|
+
psr/factory/factory.dll,sha256=_Efujjt6EdP50PzF59Ee92tgQdXrwUnoqtp37dhjeSM,18433872
|
22
22
|
psr/factory/factory.pmd,sha256=XKpcyaQhVX3kF3S34ZjBtsDNr8bU6Mz8cfSFLWRu0dU,243646
|
23
23
|
psr/factory/factory.pmk,sha256=pIvKXc7mi-njtH9AJMzq8E6Ws2Dr4gma95uWs3g-hBg,579362
|
24
24
|
psr/factory/factorylib.py,sha256=-8wOx9h5oys0ZbG12OptwjzJVrgc48AgiAkBJJPKfio,27829
|
@@ -33,8 +33,8 @@ psr/psrfcommon/tempfile.py,sha256=5S13wa2DCLYTUdwbLm_KMBRnDRJ0WDlu8GO2BmZoNdg,39
|
|
33
33
|
psr/runner/__init__.py,sha256=kI9HDX-B_LMQJUHHylFHas2rNpWfNNa0pZXoIvX_Alw,230
|
34
34
|
psr/runner/runner.py,sha256=L_YOCArpkr_O-UJH6aT3K46NlEYT_o7LA1Ldk81BULQ,27326
|
35
35
|
psr/runner/version.py,sha256=mch2Y8anSXGMn9w72Z78PhSRhOyn55EwaoLAYhY4McE,194
|
36
|
-
psr_factory-5.0.
|
37
|
-
psr_factory-5.0.
|
38
|
-
psr_factory-5.0.
|
39
|
-
psr_factory-5.0.
|
40
|
-
psr_factory-5.0.
|
36
|
+
psr_factory-5.0.0b13.dist-info/licenses/LICENSE.txt,sha256=N6mqZK2Ft3iXGHj-by_MHC_dJo9qwn0URjakEPys3H4,1089
|
37
|
+
psr_factory-5.0.0b13.dist-info/METADATA,sha256=xkzPBlZDOAiAxSrTsNxCcVY-aL8-Rt5UwvIkBfCahRY,2333
|
38
|
+
psr_factory-5.0.0b13.dist-info/WHEEL,sha256=ZjXRCNaQ9YSypEK2TE0LRB0sy2OVXSszb4Sx1XjM99k,97
|
39
|
+
psr_factory-5.0.0b13.dist-info/top_level.txt,sha256=Jb393O96WQk3b5D1gMcrZBLKJJgZpzNjTPoldUi00ck,4
|
40
|
+
psr_factory-5.0.0b13.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|