fractal-server 2.15.10a0__py3-none-any.whl → 2.15.10a2__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.
- fractal_server/__init__.py +1 -1
- fractal_server/app/runner/v2/runner.py +10 -7
- fractal_server/app/runner/v2/submit_workflow.py +4 -0
- fractal_server/config.py +0 -5
- fractal_server/tasks/v2/templates/2_pip_install.sh +1 -3
- fractal_server/tasks/v2/templates/6_pip_install_from_freeze.sh +1 -3
- fractal_server/tasks/v2/utils_templates.py +0 -4
- {fractal_server-2.15.10a0.dist-info → fractal_server-2.15.10a2.dist-info}/METADATA +1 -1
- {fractal_server-2.15.10a0.dist-info → fractal_server-2.15.10a2.dist-info}/RECORD +12 -12
- {fractal_server-2.15.10a0.dist-info → fractal_server-2.15.10a2.dist-info}/LICENSE +0 -0
- {fractal_server-2.15.10a0.dist-info → fractal_server-2.15.10a2.dist-info}/WHEEL +0 -0
- {fractal_server-2.15.10a0.dist-info → fractal_server-2.15.10a2.dist-info}/entry_points.txt +0 -0
fractal_server/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__VERSION__ = "2.15.
|
|
1
|
+
__VERSION__ = "2.15.10a2"
|
|
@@ -256,13 +256,6 @@ def execute_tasks_v2(
|
|
|
256
256
|
}
|
|
257
257
|
num_tasks = 0
|
|
258
258
|
|
|
259
|
-
# Store the SLURM error in the job database
|
|
260
|
-
with next(get_sync_db()) as db:
|
|
261
|
-
job_db = db.get(JobV2, job_id)
|
|
262
|
-
job_db.executor_error_log = runner.executor_error_log
|
|
263
|
-
db.merge(job_db)
|
|
264
|
-
db.commit()
|
|
265
|
-
|
|
266
259
|
# POST TASK EXECUTION
|
|
267
260
|
try:
|
|
268
261
|
non_failed_task_outputs = [
|
|
@@ -443,6 +436,16 @@ def execute_tasks_v2(
|
|
|
443
436
|
db.commit()
|
|
444
437
|
db.close() # NOTE: this is needed, but the reason is unclear
|
|
445
438
|
|
|
439
|
+
# Store the SLURM error in the job database
|
|
440
|
+
job_db = db.get(JobV2, job_id)
|
|
441
|
+
job_db.executor_error_log = runner.executor_error_log
|
|
442
|
+
logger.debug(
|
|
443
|
+
f"Setting JobV2[{job_id}].executor_error_log "
|
|
444
|
+
f"to '{job_db.executor_error_log}'."
|
|
445
|
+
)
|
|
446
|
+
db.merge(job_db)
|
|
447
|
+
db.commit()
|
|
448
|
+
|
|
446
449
|
# Create accounting record
|
|
447
450
|
record = AccountingRecord(
|
|
448
451
|
user_id=user_id,
|
|
@@ -51,6 +51,7 @@ def fail_job(
|
|
|
51
51
|
if emit_log:
|
|
52
52
|
logger.error(log_msg)
|
|
53
53
|
reset_logger_handlers(logger)
|
|
54
|
+
job = db.get(JobV2, job.id) # refetch, in case it was updated
|
|
54
55
|
job.status = JobStatusTypeV2.FAILED
|
|
55
56
|
job.end_timestamp = get_timestamp()
|
|
56
57
|
job.log = log_msg
|
|
@@ -302,6 +303,7 @@ def submit_workflow(
|
|
|
302
303
|
logger.debug(f'END workflow "{workflow.name}"')
|
|
303
304
|
|
|
304
305
|
# Update job DB entry
|
|
306
|
+
job = db_sync.get(JobV2, job_id) # refetch, in case it was updated
|
|
305
307
|
job.status = JobStatusTypeV2.DONE
|
|
306
308
|
job.end_timestamp = get_timestamp()
|
|
307
309
|
with log_file_path.open("r") as f:
|
|
@@ -341,5 +343,7 @@ def submit_workflow(
|
|
|
341
343
|
|
|
342
344
|
finally:
|
|
343
345
|
reset_logger_handlers(logger)
|
|
346
|
+
# refetch, in case it is not already available
|
|
347
|
+
job = db_sync.get(JobV2, job_id)
|
|
344
348
|
db_sync.close()
|
|
345
349
|
_zip_folder_to_file_and_remove(folder=job.working_dir)
|
fractal_server/config.py
CHANGED
|
@@ -579,11 +579,6 @@ class Settings(BaseSettings):
|
|
|
579
579
|
else:
|
|
580
580
|
return "--no-cache-dir"
|
|
581
581
|
|
|
582
|
-
FRACTAL_MAX_PIP_VERSION: str = "25.2"
|
|
583
|
-
"""
|
|
584
|
-
Maximum value at which to update `pip` before performing task collection.
|
|
585
|
-
"""
|
|
586
|
-
|
|
587
582
|
FRACTAL_VIEWER_AUTHORIZATION_SCHEME: Literal[
|
|
588
583
|
"viewer-paths", "users-folders", "none"
|
|
589
584
|
] = "none"
|
|
@@ -10,7 +10,6 @@ PACKAGE_ENV_DIR=__PACKAGE_ENV_DIR__
|
|
|
10
10
|
INSTALL_STRING="__INSTALL_STRING__"
|
|
11
11
|
PINNED_PACKAGE_LIST_PRE="__PINNED_PACKAGE_LIST_PRE__"
|
|
12
12
|
PINNED_PACKAGE_LIST_POST="__PINNED_PACKAGE_LIST_POST__"
|
|
13
|
-
FRACTAL_MAX_PIP_VERSION="__FRACTAL_MAX_PIP_VERSION__"
|
|
14
13
|
FRACTAL_PIP_CACHE_DIR_ARG="__FRACTAL_PIP_CACHE_DIR_ARG__"
|
|
15
14
|
|
|
16
15
|
TIME_START=$(date +%s)
|
|
@@ -19,8 +18,7 @@ VENVPYTHON=${PACKAGE_ENV_DIR}/bin/python
|
|
|
19
18
|
|
|
20
19
|
# Upgrade `pip` and install `setuptools`
|
|
21
20
|
write_log "START upgrade pip and install setuptools"
|
|
22
|
-
"$VENVPYTHON" -m pip install ${FRACTAL_PIP_CACHE_DIR_ARG}
|
|
23
|
-
"$VENVPYTHON" -m pip install ${FRACTAL_PIP_CACHE_DIR_ARG} setuptools
|
|
21
|
+
"$VENVPYTHON" -m pip install ${FRACTAL_PIP_CACHE_DIR_ARG} pip setuptools --upgrade
|
|
24
22
|
write_log "END upgrade pip and install setuptools"
|
|
25
23
|
echo
|
|
26
24
|
|
|
@@ -8,7 +8,6 @@ write_log(){
|
|
|
8
8
|
# Variables to be filled within fractal-server
|
|
9
9
|
PACKAGE_ENV_DIR=__PACKAGE_ENV_DIR__
|
|
10
10
|
PIP_FREEZE_FILE=__PIP_FREEZE_FILE__
|
|
11
|
-
FRACTAL_MAX_PIP_VERSION=__FRACTAL_MAX_PIP_VERSION__
|
|
12
11
|
FRACTAL_PIP_CACHE_DIR_ARG="__FRACTAL_PIP_CACHE_DIR_ARG__"
|
|
13
12
|
|
|
14
13
|
TIME_START=$(date +%s)
|
|
@@ -17,8 +16,7 @@ VENVPYTHON=${PACKAGE_ENV_DIR}/bin/python
|
|
|
17
16
|
|
|
18
17
|
# Upgrade `pip` and install `setuptools`
|
|
19
18
|
write_log "START upgrade pip and install setuptools"
|
|
20
|
-
"$VENVPYTHON" -m pip install ${FRACTAL_PIP_CACHE_DIR_ARG}
|
|
21
|
-
"$VENVPYTHON" -m pip install ${FRACTAL_PIP_CACHE_DIR_ARG} setuptools
|
|
19
|
+
"$VENVPYTHON" -m pip install ${FRACTAL_PIP_CACHE_DIR_ARG} pip setuptools --upgrade
|
|
22
20
|
write_log "END upgrade pip and install setuptools"
|
|
23
21
|
echo
|
|
24
22
|
|
|
@@ -93,10 +93,6 @@ def get_collection_replacements(
|
|
|
93
93
|
("__PACKAGE_ENV_DIR__", task_group.venv_path),
|
|
94
94
|
("__PYTHON__", python_bin),
|
|
95
95
|
("__INSTALL_STRING__", task_group.pip_install_string),
|
|
96
|
-
(
|
|
97
|
-
"__FRACTAL_MAX_PIP_VERSION__",
|
|
98
|
-
settings.FRACTAL_MAX_PIP_VERSION,
|
|
99
|
-
),
|
|
100
96
|
("__FRACTAL_PIP_CACHE_DIR_ARG__", settings.PIP_CACHE_DIR_ARG),
|
|
101
97
|
(
|
|
102
98
|
"__PINNED_PACKAGE_LIST_PRE__",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
fractal_server/__init__.py,sha256=
|
|
1
|
+
fractal_server/__init__.py,sha256=OXJ1IQcsAqThDeI77mxXoVQ6l_Epw75B8RINw_5nxCQ,26
|
|
2
2
|
fractal_server/__main__.py,sha256=rkM8xjY1KeS3l63irB8yCrlVobR-73uDapC4wvrIlxI,6957
|
|
3
3
|
fractal_server/alembic.ini,sha256=MWwi7GzjzawI9cCAK1LW7NxIBQDUqD12-ptJoq5JpP0,3153
|
|
4
4
|
fractal_server/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -103,9 +103,9 @@ fractal_server/app/runner/v2/_slurm_sudo.py,sha256=Gvsh4tUlc1_3KdF3B7zEqs-YIntC_
|
|
|
103
103
|
fractal_server/app/runner/v2/db_tools.py,sha256=ozp4RFLB3LNI0rM0q0udi6ja8-5vooH_dVqrbmTPNDg,3323
|
|
104
104
|
fractal_server/app/runner/v2/deduplicate_list.py,sha256=IVTE4abBU1bUprFTkxrTfYKnvkNTanWQ-KWh_etiT08,645
|
|
105
105
|
fractal_server/app/runner/v2/merge_outputs.py,sha256=YOTKbGOM9s-uqY4KN2onoIxuHNm-v3hr5zv6Aa1KEtA,905
|
|
106
|
-
fractal_server/app/runner/v2/runner.py,sha256=
|
|
106
|
+
fractal_server/app/runner/v2/runner.py,sha256=IrC4f0SaaFdN3iKoVa7XK87Gb8f9GSLjhImtvwNODCM,19417
|
|
107
107
|
fractal_server/app/runner/v2/runner_functions.py,sha256=xteoDSXKxStl3ABEXyjrggPiXdXAPy9sJPfT3B8CQ3Y,19050
|
|
108
|
-
fractal_server/app/runner/v2/submit_workflow.py,sha256=
|
|
108
|
+
fractal_server/app/runner/v2/submit_workflow.py,sha256=wHBlUxoD2HZ_oKWBMpGH0B5jqSuiLcIH3uXYWGAwfa8,12793
|
|
109
109
|
fractal_server/app/runner/v2/task_interface.py,sha256=BRSKpitGproY48JQdCbfrghbDonA-EqPP1yIopohpPo,2525
|
|
110
110
|
fractal_server/app/runner/versions.py,sha256=4BW-8Et8RVgILgpFoUJLWkEnZz53pv8hv_2ucG480ns,398
|
|
111
111
|
fractal_server/app/schemas/__init__.py,sha256=stURAU_t3AOBaH0HSUbV-GKhlPKngnnIMoqWc3orFyI,135
|
|
@@ -129,7 +129,7 @@ fractal_server/app/schemas/v2/workflowtask.py,sha256=6eweAMyziwaoMT-7R1fVJYunIeZ
|
|
|
129
129
|
fractal_server/app/security/__init__.py,sha256=oJ8RVglpOvWPQY4RokiE2YA72Nqo42dZEjywWTt8xr8,14032
|
|
130
130
|
fractal_server/app/security/signup_email.py,sha256=Xd6QYxcdmg0PHpDwmUE8XQmPcOj3Xjy5oROcIMhmltM,1472
|
|
131
131
|
fractal_server/app/user_settings.py,sha256=OP1yiYKtPadxwM51_Q0hdPk3z90TCN4z1BLpQsXyWiU,1316
|
|
132
|
-
fractal_server/config.py,sha256=
|
|
132
|
+
fractal_server/config.py,sha256=1urzZC54g7CKRFKbfCPZqQrAc-JMmKoMTWxhx3qqIv0,29368
|
|
133
133
|
fractal_server/data_migrations/2_14_10.py,sha256=jzMg2c1zNO8C_Nho_9_EZJD6kR1-gkFNpNrMR5Hr8hM,1598
|
|
134
134
|
fractal_server/data_migrations/README.md,sha256=_3AEFvDg9YkybDqCLlFPdDmGJvr6Tw7HRI14aZ3LOIw,398
|
|
135
135
|
fractal_server/data_migrations/tools.py,sha256=LeMeASwYGtEqd-3wOLle6WARdTGAimoyMmRbbJl-hAM,572
|
|
@@ -211,11 +211,11 @@ fractal_server/tasks/v2/ssh/deactivate_pixi.py,sha256=K0yK_NPUqhFMj6cp6G_0Kfn0Yo
|
|
|
211
211
|
fractal_server/tasks/v2/ssh/reactivate.py,sha256=NJIgMNFKaXMhbvK0iZOsMwMtsms6Boj9f8N4L01X9Bo,8271
|
|
212
212
|
fractal_server/tasks/v2/ssh/reactivate_pixi.py,sha256=UOlG01wOv-eQCtUxSwphEY-Ey7OoUm5PMCSP9J-i1rY,10323
|
|
213
213
|
fractal_server/tasks/v2/templates/1_create_venv.sh,sha256=PK0jdHKtQpda1zULebBaVPORt4t6V17wa4N1ohcj5ac,548
|
|
214
|
-
fractal_server/tasks/v2/templates/2_pip_install.sh,sha256=
|
|
214
|
+
fractal_server/tasks/v2/templates/2_pip_install.sh,sha256=vN9DX-eucJjB-XCuQuZmkuATGBzL4FlDQJTQdVewJG8,2155
|
|
215
215
|
fractal_server/tasks/v2/templates/3_pip_freeze.sh,sha256=JldREScEBI4cD_qjfX4UK7V4aI-FnX9ZvVNxgpSOBFc,168
|
|
216
216
|
fractal_server/tasks/v2/templates/4_pip_show.sh,sha256=qm1vPy6AkKhWDjCJGXS8LqCLYO3KsAyRK325ZsFcF6U,1747
|
|
217
217
|
fractal_server/tasks/v2/templates/5_get_venv_size_and_file_number.sh,sha256=q-6ZUvA6w6FDVEoSd9O63LaJ9tKZc7qAFH72SGPrd_k,284
|
|
218
|
-
fractal_server/tasks/v2/templates/6_pip_install_from_freeze.sh,sha256=
|
|
218
|
+
fractal_server/tasks/v2/templates/6_pip_install_from_freeze.sh,sha256=jHoALPagSCD1_HuqrxEYibWAJNOUxQGm-A2oE3f_LPE,982
|
|
219
219
|
fractal_server/tasks/v2/templates/pixi_1_extract.sh,sha256=Jdy5OyKo2jxe_qIDB9Zi4a0FL0cMBysxvBPHlUrARQM,1099
|
|
220
220
|
fractal_server/tasks/v2/templates/pixi_2_install.sh,sha256=h6-M101Q1AdAfZNZyPfSUc8AlZ-uS84Hae4vJdDSglY,1601
|
|
221
221
|
fractal_server/tasks/v2/templates/pixi_3_post_install.sh,sha256=99J8KXkNeQk9utuEtUxfAZS6VCThC32X7I7HAp2gdTU,2501
|
|
@@ -224,7 +224,7 @@ fractal_server/tasks/v2/utils_database.py,sha256=yi7793Uue32O59OBVUgomO42oUrVKdS
|
|
|
224
224
|
fractal_server/tasks/v2/utils_package_names.py,sha256=RDg__xrvQs4ieeVzmVdMcEh95vGQYrv9Hfal-5EDBM8,2393
|
|
225
225
|
fractal_server/tasks/v2/utils_pixi.py,sha256=tqCnxMdxs7KGWncWvk0alrdvDbX-w77P3fAot68Bqh4,3257
|
|
226
226
|
fractal_server/tasks/v2/utils_python_interpreter.py,sha256=kF86UClk6HxghRLDYY4rKOXwnWGUYQfrNsVNxOmOGxM,964
|
|
227
|
-
fractal_server/tasks/v2/utils_templates.py,sha256=
|
|
227
|
+
fractal_server/tasks/v2/utils_templates.py,sha256=BU2F2Hn0At-QjtUc6-BmU9CAsL3ljqvVv7cGxrsFluc,3541
|
|
228
228
|
fractal_server/types/__init__.py,sha256=aA_8J1xXzuiLqpwO_Qf18-qzaRcYkHzevhH_T-diXWM,2026
|
|
229
229
|
fractal_server/types/validators/__init__.py,sha256=5uj6KJ9MelFZgyoq3MzXLhgWCl0yiriS7XKmb0gathg,392
|
|
230
230
|
fractal_server/types/validators/_common_validators.py,sha256=MpxyaP2kwgbyCTOaVRjYnJ74Lfi0f2X0q3rjX9w3vTk,1170
|
|
@@ -233,8 +233,8 @@ fractal_server/types/validators/_workflow_task_arguments_validators.py,sha256=HL
|
|
|
233
233
|
fractal_server/urls.py,sha256=QjIKAC1a46bCdiPMu3AlpgFbcv6a4l3ABcd5xz190Og,471
|
|
234
234
|
fractal_server/utils.py,sha256=Vn35lApt1T1J8nc09sAVqd10Cy0sa3dLipcljI-hkuk,2185
|
|
235
235
|
fractal_server/zip_tools.py,sha256=H0w7wS5yE4ebj7hw1_77YQ959dl2c-L0WX6J_ro1TY4,4884
|
|
236
|
-
fractal_server-2.15.
|
|
237
|
-
fractal_server-2.15.
|
|
238
|
-
fractal_server-2.15.
|
|
239
|
-
fractal_server-2.15.
|
|
240
|
-
fractal_server-2.15.
|
|
236
|
+
fractal_server-2.15.10a2.dist-info/LICENSE,sha256=QKAharUuhxL58kSoLizKJeZE3mTCBnX6ucmz8W0lxlk,1576
|
|
237
|
+
fractal_server-2.15.10a2.dist-info/METADATA,sha256=z9Zc4RpcoHZQc06j9JhKKzjOtdVcdM21PlH_RR3wU4o,4337
|
|
238
|
+
fractal_server-2.15.10a2.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
239
|
+
fractal_server-2.15.10a2.dist-info/entry_points.txt,sha256=8tV2kynvFkjnhbtDnxAqImL6HMVKsopgGfew0DOp5UY,58
|
|
240
|
+
fractal_server-2.15.10a2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|