fractal-server 2.14.0a25__tar.gz → 2.14.0a27__tar.gz

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.
Files changed (215) hide show
  1. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/PKG-INFO +1 -1
  2. fractal_server-2.14.0a27/fractal_server/__init__.py +1 -0
  3. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/executors/slurm_common/base_slurm_runner.py +1 -1
  4. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/executors/slurm_ssh/runner.py +4 -3
  5. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/v2/runner_functions.py +11 -33
  6. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/pyproject.toml +2 -2
  7. fractal_server-2.14.0a25/fractal_server/__init__.py +0 -1
  8. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/LICENSE +0 -0
  9. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/README.md +0 -0
  10. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/__main__.py +0 -0
  11. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/alembic.ini +0 -0
  12. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/__init__.py +0 -0
  13. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/db/__init__.py +0 -0
  14. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/history/__init__.py +0 -0
  15. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/models/__init__.py +0 -0
  16. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/models/linkusergroup.py +0 -0
  17. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/models/linkuserproject.py +0 -0
  18. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/models/security.py +0 -0
  19. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/models/user_settings.py +0 -0
  20. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/models/v2/__init__.py +0 -0
  21. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/models/v2/accounting.py +0 -0
  22. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/models/v2/dataset.py +0 -0
  23. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/models/v2/history.py +0 -0
  24. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/models/v2/job.py +0 -0
  25. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/models/v2/project.py +0 -0
  26. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/models/v2/task.py +0 -0
  27. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/models/v2/task_group.py +0 -0
  28. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/models/v2/workflow.py +0 -0
  29. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/models/v2/workflowtask.py +0 -0
  30. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/__init__.py +0 -0
  31. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/admin/__init__.py +0 -0
  32. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/admin/v2/__init__.py +0 -0
  33. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/admin/v2/accounting.py +0 -0
  34. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/admin/v2/impersonate.py +0 -0
  35. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/admin/v2/job.py +0 -0
  36. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/admin/v2/project.py +0 -0
  37. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/admin/v2/task.py +0 -0
  38. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/admin/v2/task_group.py +0 -0
  39. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/admin/v2/task_group_lifecycle.py +0 -0
  40. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/__init__.py +0 -0
  41. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/__init__.py +0 -0
  42. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/_aux_functions.py +0 -0
  43. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/_aux_functions_history.py +0 -0
  44. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/_aux_functions_task_lifecycle.py +0 -0
  45. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/_aux_functions_tasks.py +0 -0
  46. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/dataset.py +0 -0
  47. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/history.py +0 -0
  48. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/images.py +0 -0
  49. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/job.py +0 -0
  50. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/project.py +0 -0
  51. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/status_legacy.py +0 -0
  52. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/submit.py +0 -0
  53. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/task.py +0 -0
  54. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/task_collection.py +0 -0
  55. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/task_collection_custom.py +0 -0
  56. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/task_group.py +0 -0
  57. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/task_group_lifecycle.py +0 -0
  58. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/verify_image_types.py +0 -0
  59. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/workflow.py +0 -0
  60. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/workflow_import.py +0 -0
  61. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/api/v2/workflowtask.py +0 -0
  62. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/auth/__init__.py +0 -0
  63. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/auth/_aux_auth.py +0 -0
  64. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/auth/current_user.py +0 -0
  65. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/auth/group.py +0 -0
  66. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/auth/login.py +0 -0
  67. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/auth/oauth.py +0 -0
  68. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/auth/register.py +0 -0
  69. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/auth/router.py +0 -0
  70. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/auth/users.py +0 -0
  71. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/aux/__init__.py +0 -0
  72. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/aux/_job.py +0 -0
  73. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/aux/_runner.py +0 -0
  74. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/aux/validate_user_settings.py +0 -0
  75. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/routes/pagination.py +0 -0
  76. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/__init__.py +0 -0
  77. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/components.py +0 -0
  78. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/compress_folder.py +0 -0
  79. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/exceptions.py +0 -0
  80. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/executors/__init__.py +0 -0
  81. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/executors/base_runner.py +0 -0
  82. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/executors/local/__init__.py +0 -0
  83. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/executors/local/get_local_config.py +0 -0
  84. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/executors/local/runner.py +0 -0
  85. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/executors/slurm_common/__init__.py +0 -0
  86. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/executors/slurm_common/_batching.py +0 -0
  87. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/executors/slurm_common/_job_states.py +0 -0
  88. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/executors/slurm_common/_slurm_config.py +0 -0
  89. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/executors/slurm_common/get_slurm_config.py +0 -0
  90. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/executors/slurm_common/remote.py +0 -0
  91. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/executors/slurm_common/slurm_job_task_models.py +0 -0
  92. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/executors/slurm_common/utils_executors.py +0 -0
  93. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/executors/slurm_ssh/__init__.py +0 -0
  94. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/executors/slurm_sudo/__init__.py +0 -0
  95. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/executors/slurm_sudo/_subprocess_run_as_user.py +0 -0
  96. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/executors/slurm_sudo/runner.py +0 -0
  97. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/extract_archive.py +0 -0
  98. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/filenames.py +0 -0
  99. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/run_subprocess.py +0 -0
  100. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/set_start_and_last_task_index.py +0 -0
  101. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/shutdown.py +0 -0
  102. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/task_files.py +0 -0
  103. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/v2/__init__.py +0 -0
  104. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/v2/_local.py +0 -0
  105. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/v2/_slurm_ssh.py +0 -0
  106. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/v2/_slurm_sudo.py +0 -0
  107. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/v2/db_tools.py +0 -0
  108. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/v2/deduplicate_list.py +0 -0
  109. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/v2/merge_outputs.py +0 -0
  110. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/v2/runner.py +0 -0
  111. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/v2/runner_functions_low_level.py +0 -0
  112. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/v2/submit_workflow.py +0 -0
  113. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/v2/task_interface.py +0 -0
  114. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/runner/versions.py +0 -0
  115. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/__init__.py +0 -0
  116. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/_filter_validators.py +0 -0
  117. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/_validators.py +0 -0
  118. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/user.py +0 -0
  119. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/user_group.py +0 -0
  120. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/user_settings.py +0 -0
  121. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/v2/__init__.py +0 -0
  122. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/v2/accounting.py +0 -0
  123. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/v2/dataset.py +0 -0
  124. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/v2/dumps.py +0 -0
  125. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/v2/history.py +0 -0
  126. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/v2/job.py +0 -0
  127. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/v2/manifest.py +0 -0
  128. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/v2/project.py +0 -0
  129. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/v2/status_legacy.py +0 -0
  130. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/v2/task.py +0 -0
  131. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/v2/task_collection.py +0 -0
  132. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/v2/task_group.py +0 -0
  133. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/v2/workflow.py +0 -0
  134. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/schemas/v2/workflowtask.py +0 -0
  135. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/security/__init__.py +0 -0
  136. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/security/signup_email.py +0 -0
  137. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/app/user_settings.py +0 -0
  138. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/config.py +0 -0
  139. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/data_migrations/README.md +0 -0
  140. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/data_migrations/tools.py +0 -0
  141. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/gunicorn_fractal.py +0 -0
  142. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/images/__init__.py +0 -0
  143. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/images/models.py +0 -0
  144. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/images/tools.py +0 -0
  145. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/logger.py +0 -0
  146. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/main.py +0 -0
  147. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/env.py +0 -0
  148. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/naming_convention.py +0 -0
  149. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/034a469ec2eb_task_groups.py +0 -0
  150. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/091b01f51f88_add_usergroup_and_linkusergroup_table.py +0 -0
  151. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/19eca0dd47a9_user_settings_project_dir.py +0 -0
  152. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/1eac13a26c83_drop_v1_tables.py +0 -0
  153. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/316140ff7ee1_remove_usersettings_cache_dir.py +0 -0
  154. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/47351f8c7ebc_drop_dataset_filters.py +0 -0
  155. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/4c308bcaea2b_add_task_args_schema_and_task_args_.py +0 -0
  156. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/4cedeb448a53_workflowtask_foreign_keys_not_nullables.py +0 -0
  157. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/501961cfcd85_remove_link_between_v1_and_v2_tasks_.py +0 -0
  158. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/50a13d6138fd_initial_schema.py +0 -0
  159. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/5bf02391cfef_v2.py +0 -0
  160. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/70e77f1c38b0_add_applyworkflow_first_task_index_and_.py +0 -0
  161. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/71eefd1dd202_add_slurm_accounts.py +0 -0
  162. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/84bf0fffde30_add_dumps_to_applyworkflow.py +0 -0
  163. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/8e8f227a3e36_update_taskv2_post_2_7_0.py +0 -0
  164. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/8f79bd162e35_add_docs_info_and_docs_link_to_task_.py +0 -0
  165. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/94a47ea2d3ff_remove_cache_dir_slurm_user_and_slurm_.py +0 -0
  166. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/97f444d47249_add_applyworkflow_project_dump.py +0 -0
  167. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/99ea79d9e5d2_add_dataset_history.py +0 -0
  168. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/9c5ae74c9b98_add_user_settings_table.py +0 -0
  169. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/9db60297b8b2_set_ondelete.py +0 -0
  170. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/9fd26a2b0de4_add_workflow_timestamp_created.py +0 -0
  171. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/a7f4d6137b53_add_workflow_dump_to_applyworkflow.py +0 -0
  172. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/af1ef1c83c9b_add_accounting_tables.py +0 -0
  173. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/af8673379a5c_drop_old_filter_columns.py +0 -0
  174. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/d256a7379ab8_taskgroup_activity_and_venv_info_to_.py +0 -0
  175. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/d4fe3708d309_make_applyworkflow_workflow_dump_non_.py +0 -0
  176. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/da2cb2ac4255_user_group_viewer_paths.py +0 -0
  177. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/db09233ad13a_split_filters_and_keep_old_columns.py +0 -0
  178. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/e75cac726012_make_applyworkflow_start_timestamp_not_.py +0 -0
  179. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/e81103413827_add_job_type_filters.py +0 -0
  180. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/efa89c30e0a4_add_project_timestamp_created.py +0 -0
  181. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/f37aceb45062_make_historyunit_logfile_required.py +0 -0
  182. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/f384e1c0cf5d_drop_task_default_args_columns.py +0 -0
  183. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/migrations/versions/fbce16ff4e47_new_history_items.py +0 -0
  184. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/py.typed +0 -0
  185. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/ssh/__init__.py +0 -0
  186. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/ssh/_fabric.py +0 -0
  187. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/string_tools.py +0 -0
  188. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/syringe.py +0 -0
  189. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/__init__.py +0 -0
  190. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/utils.py +0 -0
  191. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/__init__.py +0 -0
  192. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/local/__init__.py +0 -0
  193. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/local/_utils.py +0 -0
  194. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/local/collect.py +0 -0
  195. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/local/deactivate.py +0 -0
  196. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/local/reactivate.py +0 -0
  197. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/ssh/__init__.py +0 -0
  198. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/ssh/_utils.py +0 -0
  199. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/ssh/collect.py +0 -0
  200. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/ssh/deactivate.py +0 -0
  201. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/ssh/reactivate.py +0 -0
  202. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/templates/1_create_venv.sh +0 -0
  203. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/templates/2_pip_install.sh +0 -0
  204. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/templates/3_pip_freeze.sh +0 -0
  205. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/templates/4_pip_show.sh +0 -0
  206. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/templates/5_get_venv_size_and_file_number.sh +0 -0
  207. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/templates/6_pip_install_from_freeze.sh +0 -0
  208. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/utils_background.py +0 -0
  209. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/utils_database.py +0 -0
  210. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/utils_package_names.py +0 -0
  211. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/utils_python_interpreter.py +0 -0
  212. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/tasks/v2/utils_templates.py +0 -0
  213. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/urls.py +0 -0
  214. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/utils.py +0 -0
  215. {fractal_server-2.14.0a25 → fractal_server-2.14.0a27}/fractal_server/zip_tools.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: fractal-server
3
- Version: 2.14.0a25
3
+ Version: 2.14.0a27
4
4
  Summary: Backend component of the Fractal analytics platform
5
5
  License: BSD-3-Clause
6
6
  Author: Tommaso Comparin
@@ -0,0 +1 @@
1
+ __VERSION__ = "2.14.0a27"
@@ -248,7 +248,7 @@ class BaseSlurmRunner(BaseRunner):
248
248
 
249
249
  # Always print output of `uname -n` and `pwd`
250
250
  script_lines.append('\necho "Hostname: $(uname -n)"')
251
- script_lines.append('echo "Current directory : $(pwd)"')
251
+ script_lines.append('echo "Current directory: $(pwd)"')
252
252
  script_lines.append(
253
253
  'echo "Start time: $(date +"%Y-%m-%dT%H:%M:%S%z")"'
254
254
  )
@@ -137,7 +137,7 @@ class SlurmSSHRunner(BaseSlurmRunner):
137
137
  self.fractal_ssh.run_command(cmd=tar_command)
138
138
  t_1_tar = time.perf_counter()
139
139
  logger.info(
140
- f"Remote archive {tarfile_path_remote} created"
140
+ f"[_fetch_artifacts] Remote archive {tarfile_path_remote} created"
141
141
  f" - elapsed: {t_1_tar - t_0_tar:.3f} s"
142
142
  )
143
143
 
@@ -149,7 +149,8 @@ class SlurmSSHRunner(BaseSlurmRunner):
149
149
  )
150
150
  t_1_get = time.perf_counter()
151
151
  logger.info(
152
- f"Subfolder archive transferred back to {tarfile_path_local}"
152
+ "[_fetch_artifacts] Subfolder archive transferred back "
153
+ f"to {tarfile_path_local}"
153
154
  f" - elapsed: {t_1_get - t_0_get:.3f} s"
154
155
  )
155
156
 
@@ -160,7 +161,7 @@ class SlurmSSHRunner(BaseSlurmRunner):
160
161
  Path(tarfile_path_local).unlink(missing_ok=True)
161
162
 
162
163
  t_1 = time.perf_counter()
163
- logger.info(f"[_get_subfolder_sftp] End - elapsed: {t_1 - t_0:.3f} s")
164
+ logger.info(f"[_fetch_artifacts] End - elapsed: {t_1 - t_0:.3f} s")
164
165
 
165
166
  def _send_inputs(self, jobs: list[SlurmJob]) -> None:
166
167
  """
@@ -406,7 +406,7 @@ def run_v2_task_compound(
406
406
  db.add(history_unit)
407
407
  db.commit()
408
408
  db.refresh(history_unit)
409
- history_unit_id = history_unit.id
409
+ init_history_unit_id = history_unit.id
410
410
  # Create one `HistoryImageCache` for each input image
411
411
  bulk_upsert_image_cache_fast(
412
412
  db=db,
@@ -415,7 +415,7 @@ def run_v2_task_compound(
415
415
  workflowtask_id=wftask.id,
416
416
  dataset_id=dataset_id,
417
417
  zarr_url=zarr_url,
418
- latest_history_unit_id=history_unit_id,
418
+ latest_history_unit_id=init_history_unit_id,
419
419
  )
420
420
  for zarr_url in input_image_zarr_urls
421
421
  ],
@@ -431,7 +431,7 @@ def run_v2_task_compound(
431
431
  parameters=function_kwargs,
432
432
  task_type=task_type,
433
433
  task_files=task_files_init,
434
- history_unit_id=history_unit_id,
434
+ history_unit_id=init_history_unit_id,
435
435
  config=runner_config_init,
436
436
  )
437
437
 
@@ -459,7 +459,7 @@ def run_v2_task_compound(
459
459
  # Mark the init-task `HistoryUnit` as "done"
460
460
  with next(get_sync_db()) as db:
461
461
  update_status_of_history_unit(
462
- history_unit_id=history_unit_id,
462
+ history_unit_id=init_history_unit_id,
463
463
  status=HistoryUnitStatus.DONE,
464
464
  db_sync=db,
465
465
  )
@@ -470,7 +470,7 @@ def run_v2_task_compound(
470
470
  if len(parallelization_list) == 0:
471
471
  with next(get_sync_db()) as db:
472
472
  update_status_of_history_unit(
473
- history_unit_id=history_unit_id,
473
+ history_unit_id=init_history_unit_id,
474
474
  status=HistoryUnitStatus.DONE,
475
475
  db_sync=db,
476
476
  )
@@ -525,30 +525,6 @@ def run_v2_task_compound(
525
525
  for history_unit in history_units:
526
526
  db.refresh(history_unit)
527
527
  history_unit_ids = [history_unit.id for history_unit in history_units]
528
- # Create one `HistoryImageCache` per `zarr_url`.
529
- with next(get_sync_db()) as db:
530
- visited_zarr_urls = set()
531
- history_image_caches = []
532
- for ind, history_unit in enumerate(history_units):
533
- _zarr_url = history_unit.zarr_urls[0]
534
- if _zarr_url in visited_zarr_urls:
535
- # Note: This `HistoryUnit` won't be associated to any
536
- # `HistoryImageCache`.
537
- pass
538
- else:
539
- visited_zarr_urls.add(_zarr_url)
540
- history_image_caches.append(
541
- dict(
542
- workflowtask_id=wftask.id,
543
- dataset_id=dataset_id,
544
- zarr_url=_zarr_url,
545
- latest_history_unit_id=history_unit.id,
546
- )
547
- )
548
- bulk_upsert_image_cache_fast(
549
- db=db,
550
- list_upsert_objects=history_image_caches,
551
- )
552
528
 
553
529
  results, exceptions = runner.multisubmit(
554
530
  functools.partial(
@@ -565,7 +541,7 @@ def run_v2_task_compound(
565
541
  config=runner_config_compute,
566
542
  )
567
543
 
568
- init_outcome = {}
544
+ compute_outcomes: dict[int, SubmissionOutcome] = {}
569
545
  failure = False
570
546
  for ind in range(len(list_function_kwargs)):
571
547
  if ind not in results.keys() and ind not in exceptions.keys():
@@ -576,10 +552,12 @@ def run_v2_task_compound(
576
552
  )
577
553
  logger.error(error_msg)
578
554
  raise RuntimeError(error_msg)
579
- init_outcome[ind] = _process_task_output(
555
+ compute_outcomes[ind] = _process_task_output(
580
556
  result=results.get(ind, None),
581
557
  exception=exceptions.get(ind, None),
582
558
  )
559
+ if compute_outcomes[ind].exception is not None:
560
+ failure = True
583
561
 
584
562
  # NOTE: For compound tasks, we update `HistoryUnit.status` from here,
585
563
  # rather than within the submit/multisubmit runner methods. This is
@@ -588,7 +566,7 @@ def run_v2_task_compound(
588
566
  with next(get_sync_db()) as db:
589
567
  if failure:
590
568
  bulk_update_status_of_history_unit(
591
- history_unit_ids=history_unit_ids,
569
+ history_unit_ids=history_unit_ids + [init_history_unit_id],
592
570
  status=HistoryUnitStatus.FAILED,
593
571
  db_sync=db,
594
572
  )
@@ -599,4 +577,4 @@ def run_v2_task_compound(
599
577
  db_sync=db,
600
578
  )
601
579
 
602
- return init_outcome, num_tasks
580
+ return compute_outcomes, num_tasks
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "fractal-server"
3
- version = "2.14.0a25"
3
+ version = "2.14.0a27"
4
4
  description = "Backend component of the Fractal analytics platform"
5
5
  authors = [
6
6
  { name="Tommaso Comparin", email="tommaso.comparin@exact-lab.it" },
@@ -95,7 +95,7 @@ filterwarnings = [
95
95
  markers = ["container", "ssh"]
96
96
 
97
97
  [tool.bumpver]
98
- current_version = "2.14.0a25"
98
+ current_version = "2.14.0a27"
99
99
  version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"
100
100
  commit_message = "bump version {old_version} -> {new_version}"
101
101
  commit = true
@@ -1 +0,0 @@
1
- __VERSION__ = "2.14.0a25"