pybiolib 1.2.334.dev1__py3-none-any.whl → 1.2.340.dev1__py3-none-any.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.
- biolib/compute_node/webserver/worker_thread.py +10 -4
- {pybiolib-1.2.334.dev1.dist-info → pybiolib-1.2.340.dev1.dist-info}/METADATA +1 -1
- {pybiolib-1.2.334.dev1.dist-info → pybiolib-1.2.340.dev1.dist-info}/RECORD +6 -6
- {pybiolib-1.2.334.dev1.dist-info → pybiolib-1.2.340.dev1.dist-info}/LICENSE +0 -0
- {pybiolib-1.2.334.dev1.dist-info → pybiolib-1.2.340.dev1.dist-info}/WHEEL +0 -0
- {pybiolib-1.2.334.dev1.dist-info → pybiolib-1.2.340.dev1.dist-info}/entry_points.txt +0 -0
@@ -179,10 +179,7 @@ class WorkerThread(threading.Thread):
|
|
179
179
|
cloud_job_uuid = self.compute_state['cloud_job_id']
|
180
180
|
system_exception_code = self.compute_state['status'].get('error_code')
|
181
181
|
|
182
|
-
if utils.IS_RUNNING_IN_CLOUD:
|
183
|
-
if system_exception_code == SystemExceptionCodes.CANCELLED_BY_USER.value:
|
184
|
-
self.compute_state['exit_code'] = self._upload_module_output_and_get_exit_code()
|
185
|
-
|
182
|
+
if utils.IS_RUNNING_IN_CLOUD and system_exception_code != SystemExceptionCodes.CANCELLED_BY_USER.value:
|
186
183
|
CloudUtils.finish_cloud_job(
|
187
184
|
cloud_job_id=cloud_job_uuid,
|
188
185
|
system_exception_code=system_exception_code,
|
@@ -217,6 +214,15 @@ class WorkerThread(threading.Thread):
|
|
217
214
|
CloudUtils.deregister(error='job_cleanup_timed_out')
|
218
215
|
deregistered_due_to_error = True
|
219
216
|
|
217
|
+
elif system_exception_code == SystemExceptionCodes.CANCELLED_BY_USER.value:
|
218
|
+
self.compute_state['exit_code'] = self._upload_module_output_and_get_exit_code()
|
219
|
+
CloudUtils.finish_cloud_job(
|
220
|
+
cloud_job_id=cloud_job_uuid,
|
221
|
+
system_exception_code=system_exception_code,
|
222
|
+
exit_code=self.compute_state.get('exit_code', None),
|
223
|
+
)
|
224
|
+
|
225
|
+
|
220
226
|
# Delete result as error occurred
|
221
227
|
if system_exception_code and os.path.exists(self._job_temporary_dir):
|
222
228
|
shutil.rmtree(self._job_temporary_dir)
|
@@ -97,7 +97,7 @@ biolib/compute_node/webserver/gunicorn_flask_application.py,sha256=jPfR_YvNBekLU
|
|
97
97
|
biolib/compute_node/webserver/webserver.py,sha256=o4kOAStsqThUtKlnRE-U5TP0JIYntuySDjU7PH310xg,6620
|
98
98
|
biolib/compute_node/webserver/webserver_types.py,sha256=2t8EaFKESnves3BA_NBdnS2yAdo1qwamCFHiSt888nE,380
|
99
99
|
biolib/compute_node/webserver/webserver_utils.py,sha256=XWvwYPbWNR3qS0FYbLLp-MDDfVk0QdaAmg3xPrT0H2s,4234
|
100
|
-
biolib/compute_node/webserver/worker_thread.py,sha256=
|
100
|
+
biolib/compute_node/webserver/worker_thread.py,sha256=0kb7RgwDSIzTZfjttUHelyAS8g7VPx1J1E7GbqYObu0,12288
|
101
101
|
biolib/experiments/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
102
102
|
biolib/experiments/experiment.py,sha256=m7FB7hot8CMOVrNyWGPB6FTkWQJwI0ytpIvtPxfoPME,7684
|
103
103
|
biolib/jobs/__init__.py,sha256=aIb2H2DHjQbM2Bs-dysFijhwFcL58Blp0Co0gimED3w,32
|
@@ -118,8 +118,8 @@ biolib/utils/cache_state.py,sha256=u256F37QSRIVwqKlbnCyzAX4EMI-kl6Dwu6qwj-Qmag,3
|
|
118
118
|
biolib/utils/multipart_uploader.py,sha256=XvGP1I8tQuKhAH-QugPRoEsCi9qvbRk-DVBs5PNwwJo,8452
|
119
119
|
biolib/utils/seq_util.py,sha256=Ozk0blGtPur_D9MwShD02r_mphyQmgZkx-lOHOwnlIM,6730
|
120
120
|
biolib/utils/zip/remote_zip.py,sha256=0wErYlxir5921agfFeV1xVjf29l9VNgGQvNlWOlj2Yc,23232
|
121
|
-
pybiolib-1.2.
|
122
|
-
pybiolib-1.2.
|
123
|
-
pybiolib-1.2.
|
124
|
-
pybiolib-1.2.
|
125
|
-
pybiolib-1.2.
|
121
|
+
pybiolib-1.2.340.dev1.dist-info/LICENSE,sha256=F2h7gf8i0agDIeWoBPXDMYScvQOz02pAWkKhTGOHaaw,1067
|
122
|
+
pybiolib-1.2.340.dev1.dist-info/METADATA,sha256=nZlIvyDlGZX801BNcASFHgpASI2ztyIKhkBMgoWfhss,1575
|
123
|
+
pybiolib-1.2.340.dev1.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
|
124
|
+
pybiolib-1.2.340.dev1.dist-info/entry_points.txt,sha256=p6DyaP_2kctxegTX23WBznnrDi4mz6gx04O5uKtRDXg,42
|
125
|
+
pybiolib-1.2.340.dev1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|