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.
@@ -1 +1 @@
1
- __VERSION__ = "2.3.0a0"
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["package_root"]
120
- package_name = values["package_name"]
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
- async def background_collect_pip_ssh(
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:
@@ -10,7 +10,7 @@ PACKAGE_ENV_DIR=__PACKAGE_ENV_DIR__
10
10
  PACKAGE_NAME=__PACKAGE_NAME__
11
11
  PACKAGE=__PACKAGE__
12
12
  PYTHON=__PYTHON__
13
- INSTALL_STRING=__INSTAL_STRING__
13
+ INSTALL_STRING=__INSTALL_STRING__
14
14
 
15
15
  TIME_START=$(date +%s)
16
16
 
@@ -12,7 +12,7 @@ PACKAGE_ENV_DIR=__PACKAGE_ENV_DIR__
12
12
  PACKAGE_NAME=__PACKAGE_NAME__
13
13
  PACKAGE=__PACKAGE__
14
14
  PYTHON=__PYTHON__
15
- INSTALL_STRING=__INSTAL_STRING__
15
+ INSTALL_STRING=__INSTALL_STRING__
16
16
 
17
17
 
18
18
 
@@ -11,7 +11,7 @@ PACKAGE_ENV_DIR=__PACKAGE_ENV_DIR__
11
11
  PACKAGE_NAME=__PACKAGE_NAME__
12
12
  PACKAGE=__PACKAGE__
13
13
  PYTHON=__PYTHON__
14
- INSTALL_STRING=__INSTAL_STRING__
14
+ INSTALL_STRING=__INSTALL_STRING__
15
15
 
16
16
 
17
17
  TIME_START=$(date +%s)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: fractal-server
3
- Version: 2.3.0a0
3
+ Version: 2.3.0a1
4
4
  Summary: Server component of the Fractal analytics platform
5
5
  Home-page: https://github.com/fractal-analytics-platform/fractal-server
6
6
  License: BSD-3-Clause
@@ -1,4 +1,4 @@
1
- fractal_server/__init__.py,sha256=NUiWXbKdkjhFPGUHB9xqD5jxggU6mBVYu1Kp1n3xVOA,24
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=U_3Tjr-oPoM276sQfqDtyckDp6FIO-j5cv1DNlekMdU,6045
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=KQIulabP9B4ACSzpbAfmPNheAuxz31-A9XFrk0qyRvs,11805
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=TT1hdgnyuuB5IkqtQE222S8BezvpqsX7aKYQ6McWqmg,625
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=_UA2Ckke_JApi4NFciYslEhU-QpMfoIj0Iac4ZTn558,371
191
- fractal_server/tasks/v2/templates/_5_pip_show.sh,sha256=8E7gHPyd_4dmURNeoy9THzBB63c-gObBY4jcNlbWmaw,1824
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.0a0.dist-info/LICENSE,sha256=QKAharUuhxL58kSoLizKJeZE3mTCBnX6ucmz8W0lxlk,1576
196
- fractal_server-2.3.0a0.dist-info/METADATA,sha256=T97rFL8LsA21n54Zdfl8OAANAH5hOMc7KPu23c86Ek4,4427
197
- fractal_server-2.3.0a0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
198
- fractal_server-2.3.0a0.dist-info/entry_points.txt,sha256=8tV2kynvFkjnhbtDnxAqImL6HMVKsopgGfew0DOp5UY,58
199
- fractal_server-2.3.0a0.dist-info/RECORD,,
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,,