_slurm_ssh
Slurm Bakend
This backend runs fractal workflows in a SLURM cluster using Clusterfutures Executor objects.
_process_workflow(*, workflow, dataset, logger_name, workflow_dir_local, workflow_dir_remote, first_task_index, last_task_index, fractal_ssh, worker_init=None)
¶
Internal processing routine for the SLURM backend
This function initialises the a FractalSlurmExecutor, setting logging, workflow working dir and user to impersonate. It then schedules the workflow tasks and returns the new dataset attributes
Returns:
Name | Type | Description |
---|---|---|
new_dataset_attributes |
dict[str, Any]
|
|
Source code in fractal_server/app/runner/v2/_slurm_ssh/__init__.py
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
|
process_workflow(*, workflow, dataset, workflow_dir_local, workflow_dir_remote=None, first_task_index=None, last_task_index=None, logger_name, fractal_ssh, user_cache_dir=None, slurm_user=None, slurm_account=None, worker_init=None)
async
¶
Process workflow (SLURM backend public interface)
Source code in fractal_server/app/runner/v2/_slurm_ssh/__init__.py
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
|