psr-factory 5.0.0b18__py3-none-win_amd64.whl → 5.0.0b19__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/db.py +1 -1
- psr/execqueue/server.py +1 -1
- psr/execqueue/watcher.py +0 -1
- psr/factory/__init__.py +1 -1
- psr/factory/factory.dll +0 -0
- {psr_factory-5.0.0b18.dist-info → psr_factory-5.0.0b19.dist-info}/METADATA +1 -1
- {psr_factory-5.0.0b18.dist-info → psr_factory-5.0.0b19.dist-info}/RECORD +10 -10
- {psr_factory-5.0.0b18.dist-info → psr_factory-5.0.0b19.dist-info}/WHEEL +0 -0
- {psr_factory-5.0.0b18.dist-info → psr_factory-5.0.0b19.dist-info}/licenses/LICENSE.txt +0 -0
- {psr_factory-5.0.0b18.dist-info → psr_factory-5.0.0b19.dist-info}/top_level.txt +0 -0
psr/execqueue/db.py
CHANGED
@@ -158,7 +158,7 @@ def update_local_execution_status(session, execution_id: str, status: int):
|
|
158
158
|
def update_cloud_execution_status(session, repository_id: int, status: int):
|
159
159
|
cloud_execution = session.query(CloudExecution).filter(CloudExecution.repository_id == repository_id).first()
|
160
160
|
if cloud_execution:
|
161
|
-
if status not in CloudStatus:
|
161
|
+
if CloudStatus(status) not in CloudStatus:
|
162
162
|
raise ValueError("Wrong status for update.")
|
163
163
|
cloud_execution.status = status
|
164
164
|
session.commit()
|
psr/execqueue/server.py
CHANGED
@@ -309,7 +309,6 @@ def get_status(execution_id):
|
|
309
309
|
if repository_id is None:
|
310
310
|
return jsonify({'error': 'Execution ID not found in Cloud'}), 404
|
311
311
|
status = db.get_cloud_execution_status(session, repository_id)
|
312
|
-
print(status)
|
313
312
|
if status == db.CloudStatus.ERROR.value:
|
314
313
|
status_msg = 'Execution finished with errors. Only log files will be downloaded'
|
315
314
|
elif status == db.CloudStatus.RUNNING.value:
|
@@ -322,6 +321,7 @@ def get_status(execution_id):
|
|
322
321
|
status_msg = 'Execution finished with errors and log files are avaialble to download'
|
323
322
|
else:
|
324
323
|
status_msg = 'Unknown status'
|
324
|
+
print(f"Cloud execution status for {execution_id} ({repository_id}): {status_msg}")
|
325
325
|
return jsonify({'status_id': status, 'status_msg': status_msg}), 200
|
326
326
|
else:
|
327
327
|
status = db.get_local_execution_status(session, execution_id)
|
psr/execqueue/watcher.py
CHANGED
@@ -98,7 +98,6 @@ def _check_and_download_results():
|
|
98
98
|
continue
|
99
99
|
if status_id == 5 or status_id == 6:
|
100
100
|
files = execqueue.get_results(cloud_upload_id, SERVER_URL, cloud_execution=True)
|
101
|
-
print("Files:", files)
|
102
101
|
if files:
|
103
102
|
base_filename = os.path.splitext(filename)[0]
|
104
103
|
download_folder_name = f"{base_filename}-{cloud_upload_id}"
|
psr/factory/__init__.py
CHANGED
psr/factory/factory.dll
CHANGED
Binary file
|
@@ -13,12 +13,12 @@ psr/cloud/version.py,sha256=jwq5nQsan38iZF0lj5GFK7l9EIe4aSF1NzdcupAfHP4,192
|
|
13
13
|
psr/cloud/xml.py,sha256=ac2lyflOQm8khPvJn0zmI26I4sfUDY6A_OTsxzbMQEs,1896
|
14
14
|
psr/execqueue/client.py,sha256=P89Yt76W2GqRXaG_MLsa0kXf0jPp-weBd3aSTRcDzcs,4443
|
15
15
|
psr/execqueue/config.py,sha256=3KVwASOgRlymOSPeabotgBdLVB5sPKnPQ9og2q3LQfw,1418
|
16
|
-
psr/execqueue/db.py,sha256=
|
17
|
-
psr/execqueue/server.py,sha256=
|
18
|
-
psr/execqueue/watcher.py,sha256=
|
19
|
-
psr/factory/__init__.py,sha256=
|
16
|
+
psr/execqueue/db.py,sha256=sNr_StNEgZZQCKcyCWiB1WrQJIhE9UvLUxPA2tWiXGs,8498
|
17
|
+
psr/execqueue/server.py,sha256=nW-Hi5zWHgPeLicASKJND7u6rz6eqwC16k91tUUQPxk,15741
|
18
|
+
psr/execqueue/watcher.py,sha256=RCjaWCS3jdbcugMk3-hOQCmrKxFzVOm-Wn-SLYBdBgY,5662
|
19
|
+
psr/factory/__init__.py,sha256=E5_ke-sdZr5-RNQ0YkE6Ia4k_dGMXhJAsi0xnl9RBUw,219
|
20
20
|
psr/factory/api.py,sha256=OsjFnXgl6ltYtcpDIhvjauGFprVrIaHWPcMgCGJ1C1E,101464
|
21
|
-
psr/factory/factory.dll,sha256=
|
21
|
+
psr/factory/factory.dll,sha256=Ayn-rwrdTP_jM-x8bFXHLEOp30NFB55kkWbarkjVZns,18301440
|
22
22
|
psr/factory/factory.pmd,sha256=HryDY8T6vAV5r0W4ytKNPiIYcdn4LexrsVZ5qFYBZ-g,250535
|
23
23
|
psr/factory/factory.pmk,sha256=THhHxBKTBchru3fxTCos-pBAPJJnuug8T2dw0xniDfQ,580185
|
24
24
|
psr/factory/factorylib.py,sha256=rwqu9lucfBhiFECDd5UVuy1K9jIJ54mUfxNPh4JhY4I,28182
|
@@ -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.0b19.dist-info/licenses/LICENSE.txt,sha256=N6mqZK2Ft3iXGHj-by_MHC_dJo9qwn0URjakEPys3H4,1089
|
37
|
+
psr_factory-5.0.0b19.dist-info/METADATA,sha256=FibEzT-fEVac6AqnO-y2pXM7tan6URDMUTEk4waReHA,2333
|
38
|
+
psr_factory-5.0.0b19.dist-info/WHEEL,sha256=ZjXRCNaQ9YSypEK2TE0LRB0sy2OVXSszb4Sx1XjM99k,97
|
39
|
+
psr_factory-5.0.0b19.dist-info/top_level.txt,sha256=Jb393O96WQk3b5D1gMcrZBLKJJgZpzNjTPoldUi00ck,4
|
40
|
+
psr_factory-5.0.0b19.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|