fractal-server 2.3.0a0__py3-none-any.whl → 2.3.0a1__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/schemas/v2/task_collection.py +2 -2
- fractal_server/tasks/v2/background_operations_ssh.py +5 -1
- fractal_server/tasks/v2/templates/_2_upgrade_pip.sh +1 -1
- fractal_server/tasks/v2/templates/_4_pip_freeze.sh +1 -1
- fractal_server/tasks/v2/templates/_5_pip_show.sh +1 -1
- {fractal_server-2.3.0a0.dist-info → fractal_server-2.3.0a1.dist-info}/METADATA +1 -1
- {fractal_server-2.3.0a0.dist-info → fractal_server-2.3.0a1.dist-info}/RECORD +11 -11
- {fractal_server-2.3.0a0.dist-info → fractal_server-2.3.0a1.dist-info}/LICENSE +0 -0
- {fractal_server-2.3.0a0.dist-info → fractal_server-2.3.0a1.dist-info}/WHEEL +0 -0
- {fractal_server-2.3.0a0.dist-info → fractal_server-2.3.0a1.dist-info}/entry_points.txt +0 -0
fractal_server/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__VERSION__ = "2.3.
|
1
|
+
__VERSION__ = "2.3.0a1"
|
@@ -116,8 +116,8 @@ class TaskCollectCustomV2(BaseModel):
|
|
116
116
|
|
117
117
|
@root_validator(pre=True)
|
118
118
|
def one_of_package_root_or_name(cls, values):
|
119
|
-
package_root = values
|
120
|
-
package_name = values
|
119
|
+
package_root = values.get("package_root")
|
120
|
+
package_name = values.get("package_name")
|
121
121
|
if (package_root is None and package_name is None) or (
|
122
122
|
package_root is not None and package_name is not None
|
123
123
|
):
|
@@ -112,7 +112,7 @@ def _customize_and_run_template(
|
|
112
112
|
return stdout
|
113
113
|
|
114
114
|
|
115
|
-
|
115
|
+
def background_collect_pip_ssh(
|
116
116
|
state_id: int,
|
117
117
|
task_pkg: _TaskCollectPip,
|
118
118
|
connection: Connection,
|
@@ -122,6 +122,10 @@ async def background_collect_pip_ssh(
|
|
122
122
|
|
123
123
|
This function is run as a background task, therefore exceptions must be
|
124
124
|
handled.
|
125
|
+
|
126
|
+
NOTE: by making this function sync, it will run within a thread - due to
|
127
|
+
starlette/fastapi handling of background tasks (see
|
128
|
+
https://github.com/encode/starlette/blob/master/starlette/background.py).
|
125
129
|
"""
|
126
130
|
# Work within a temporary folder, where also logs will be placed
|
127
131
|
with TemporaryDirectory() as tmpdir:
|
@@ -1,4 +1,4 @@
|
|
1
|
-
fractal_server/__init__.py,sha256
|
1
|
+
fractal_server/__init__.py,sha256=-AWvxo9_iEn6AeN7kh3LOcvbooEszyPH4VcZe0uRR2w,24
|
2
2
|
fractal_server/__main__.py,sha256=CocbzZooX1UtGqPi55GcHGNxnrJXFg5tUU5b3wyFCyo,4958
|
3
3
|
fractal_server/alembic.ini,sha256=MWwi7GzjzawI9cCAK1LW7NxIBQDUqD12-ptJoq5JpP0,3153
|
4
4
|
fractal_server/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -135,7 +135,7 @@ fractal_server/app/schemas/v2/manifest.py,sha256=N37IWohcfO3_y2l8rVM0h_1nZq7m4Iz
|
|
135
135
|
fractal_server/app/schemas/v2/project.py,sha256=u7S4B-bote1oGjzAGiZ-DuQIyeRAGqJsI71Tc1EtYE0,736
|
136
136
|
fractal_server/app/schemas/v2/status.py,sha256=SQaUpQkjFq5c5k5J4rOjNhuQaDOEg8lksPhkKmPU5VU,332
|
137
137
|
fractal_server/app/schemas/v2/task.py,sha256=7IfxiZkaVqlARy7WYE_H8m7j_IEcuQaZORUrs6b5YuY,4672
|
138
|
-
fractal_server/app/schemas/v2/task_collection.py,sha256=
|
138
|
+
fractal_server/app/schemas/v2/task_collection.py,sha256=TU7Bl6qZNAgAkY63PtLte0SO0WctHb6uqX3iv7ezbt8,6053
|
139
139
|
fractal_server/app/schemas/v2/workflow.py,sha256=Zzx3e-qgkH8le0FUmAx9UrV5PWd7bj14PPXUh_zgZXM,1827
|
140
140
|
fractal_server/app/schemas/v2/workflowtask.py,sha256=atVuVN4aXsVEOmSd-vyg-8_8OnPmqx-gT75rXcn_AlQ,6552
|
141
141
|
fractal_server/app/security/__init__.py,sha256=2-QbwuR-nsuHM_uwKS_WzYvkhnuhO5jUv8UVROetyVk,11169
|
@@ -182,18 +182,18 @@ fractal_server/tasks/v2/_TaskCollectPip.py,sha256=kWQNMNZ8OEddkYhmhsk3E6ArcaD7qe
|
|
182
182
|
fractal_server/tasks/v2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
183
183
|
fractal_server/tasks/v2/_venv_pip.py,sha256=xm4XClWYbhXQRqDxYxM9cP7ZCnx-8b078fuVUL12D2M,6286
|
184
184
|
fractal_server/tasks/v2/background_operations.py,sha256=dfKH467G0tln9EKiDRzN2WW_eD1SvT3PJrMu4FyTCBs,11497
|
185
|
-
fractal_server/tasks/v2/background_operations_ssh.py,sha256=
|
185
|
+
fractal_server/tasks/v2/background_operations_ssh.py,sha256=yTD4U4HtOF3cWGun6C5vtWEUQOwXL0MoP0l0RX-WzOY,12011
|
186
186
|
fractal_server/tasks/v2/endpoint_operations.py,sha256=gT38pl5TEH6WNWOtg4Itegt2lTJJI6YRa7fEj9Y4x2s,4226
|
187
187
|
fractal_server/tasks/v2/templates/_1_create_venv.sh,sha256=_Lr1UCWQycqea07YZFICxiwQVz9YZHYS-AaVFjNLUyQ,993
|
188
|
-
fractal_server/tasks/v2/templates/_2_upgrade_pip.sh,sha256=
|
188
|
+
fractal_server/tasks/v2/templates/_2_upgrade_pip.sh,sha256=45CPrRxxNBq1ujDA8m1_LWt6QaN1G29mda_LbW2EjN8,626
|
189
189
|
fractal_server/tasks/v2/templates/_3_pip_install.sh,sha256=ViAf3KKtk8YnEkrhybPV8ZZdmZJ0g2l4zkoVnmXbAKw,664
|
190
|
-
fractal_server/tasks/v2/templates/_4_pip_freeze.sh,sha256=
|
191
|
-
fractal_server/tasks/v2/templates/_5_pip_show.sh,sha256=
|
190
|
+
fractal_server/tasks/v2/templates/_4_pip_freeze.sh,sha256=SHndmLn5daT_lg6rnhNPMrRiPAIbGUlMUBIDDLniVOg,372
|
191
|
+
fractal_server/tasks/v2/templates/_5_pip_show.sh,sha256=3onbKZ0PJkkYronP4_tdMBoAe3GqxVQFH-L4dUqSkQY,1825
|
192
192
|
fractal_server/tasks/v2/utils.py,sha256=JOyCacb6MNvrwfLNTyLwcz8y79J29YuJeJ2MK5kqXRM,1657
|
193
193
|
fractal_server/urls.py,sha256=5o_qq7PzKKbwq12NHSQZDmDitn5RAOeQ4xufu-2v9Zk,448
|
194
194
|
fractal_server/utils.py,sha256=b7WwFdcFZ8unyT65mloFToYuEDXpQoHRcmRNqrhd_dQ,2115
|
195
|
-
fractal_server-2.3.
|
196
|
-
fractal_server-2.3.
|
197
|
-
fractal_server-2.3.
|
198
|
-
fractal_server-2.3.
|
199
|
-
fractal_server-2.3.
|
195
|
+
fractal_server-2.3.0a1.dist-info/LICENSE,sha256=QKAharUuhxL58kSoLizKJeZE3mTCBnX6ucmz8W0lxlk,1576
|
196
|
+
fractal_server-2.3.0a1.dist-info/METADATA,sha256=ygT18QSalCHoGqzBvEUf8I1qTl9hyXcI5pBmiao9XCQ,4427
|
197
|
+
fractal_server-2.3.0a1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
198
|
+
fractal_server-2.3.0a1.dist-info/entry_points.txt,sha256=8tV2kynvFkjnhbtDnxAqImL6HMVKsopgGfew0DOp5UY,58
|
199
|
+
fractal_server-2.3.0a1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|