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 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
@@ -2,6 +2,6 @@
2
2
  # Unauthorized copying of this file, via any medium is strictly prohibited
3
3
  # Proprietary and confidential
4
4
 
5
- __version__ = "5.0.0b18"
5
+ __version__ = "5.0.0b19"
6
6
 
7
7
  from .api import *
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.0b18
3
+ Version: 5.0.0b19
4
4
  Summary: PSR database management module.
5
5
  Author-email: "PSR Inc." <psrfactory@psr-inc.com>
6
6
  License-Expression: MIT
@@ -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=e0DN3Z4a-iPuTXGqjrZQYKzntIjsSHjCb2242hcSM9c,8485
17
- psr/execqueue/server.py,sha256=hZG8N_YWSfCgNIkVUNAhJrq1JMTEdsW64yr2cOHFaZ8,15671
18
- psr/execqueue/watcher.py,sha256=OA6VlwB_wBzyzjn5PvTH2Q23iiG0_sWOzwpUQSFpbGQ,5698
19
- psr/factory/__init__.py,sha256=pjwQFbgo2qEQbMdwUWidn9AjJIaCTy8qhFdyJihg3Qg,219
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=j9OfgdGnEaJj2O0ZAhMDhM3grP_Eopcff7O7yEHbR6Y,18301440
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.0b18.dist-info/licenses/LICENSE.txt,sha256=N6mqZK2Ft3iXGHj-by_MHC_dJo9qwn0URjakEPys3H4,1089
37
- psr_factory-5.0.0b18.dist-info/METADATA,sha256=9sExuScetDk6-Dol258BScFa1k26f4w_p8LNH-QA320,2333
38
- psr_factory-5.0.0b18.dist-info/WHEEL,sha256=ZjXRCNaQ9YSypEK2TE0LRB0sy2OVXSszb4Sx1XjM99k,97
39
- psr_factory-5.0.0b18.dist-info/top_level.txt,sha256=Jb393O96WQk3b5D1gMcrZBLKJJgZpzNjTPoldUi00ck,4
40
- psr_factory-5.0.0b18.dist-info/RECORD,,
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,,