@@ -106,49 +106,23 @@ job::job({
106106 store = " /vast/projects/mangiola_immune_map/PostDoc/immuneHealthyBodyMap/census_hpcell_oct_2024/target_store/" ,
107107 gene_nomenclature = " ensembl" ,
108108 data_container_type = " anndata" ,
109- tier = tiers ,
109+ # tier = tiers, # WE DON"T NEED AS WE HAVE ELASTIC RESOURCES NOW
110110 computing_resources = list (
111- crew_controller_slurm(
112- name = " tier_1" ,
113- script_lines = " #SBATCH --mem 8G" ,
114- slurm_cpus_per_task = 1 ,
115- workers = 300 ,
116- tasks_max = 10 ,
117- verbose = T ,
118- launch_max = 10 ,
119- seconds_idle = 30
120- ),
121111
122112 crew_controller_slurm(
123- name = " tier_2" ,
124- script_lines = " #SBATCH --mem 10G" ,
125- slurm_cpus_per_task = 1 ,
126- workers = 200 ,
127- tasks_max = 10 ,
128- verbose = T ,
129- launch_max = 10 ,
130- seconds_idle = 30
131- ),
132- crew_controller_slurm(
133- name = " tier_3" ,
134- script_lines = " #SBATCH --mem 15G" ,
135- slurm_cpus_per_task = 1 ,
136- workers = 100 ,
137- tasks_max = 10 ,
138- verbose = T ,
139- launch_max = 5 ,
140- seconds_idle = 30
141- ),
142- crew_controller_slurm(
143- name = " tier_4" ,
144- script_lines = " #SBATCH --mem 200G" , # There should be a tier 5 with 12Gb for sample of 40K cells
145- slurm_cpus_per_task = 1 ,
146- workers = 100 ,
147- tasks_max = 10 ,
148- verbose = T ,
149- launch_max = 5 ,
150- seconds_idle = 30
113+ name = " elastic" ,
114+ workers = 300 ,
115+ tasks_max = 20 ,
116+ seconds_idle = 30 ,
117+ crashes_error = 5 ,
118+ options_cluster = crew_options_slurm(
119+ memory_gigabytes_required = c(8 , 10 , 40 , 80 , 200 ),
120+ cpus_per_task = 2 ,
121+ time_minutes = c(60 , 60 * 4 , 60 * 4 , 60 * 24 , 60 * 24 ),
122+ verbose = T
123+ )
151124 )
125+
152126 ),
153127 verbosity = " summary" ,
154128 # debug_step = "annotation_tbl_tier_4",
0 commit comments