File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 205205 " with Executor(\n " ,
206206 " # Resource definition on the executor level\n " ,
207207 " max_workers=2, # total number of cores available to the Executor\n " ,
208- " backend=\" flux \" , # optional in case the backend is not recognized\n " ,
208+ " backend=\" flux_allocation \" , # optional in case the backend is not recognized\n " ,
209209 " # Optional resource definition\n " ,
210210 " resource_dict={\n " ,
211211 " \" cores\" : 1,\n " ,
627627 " return parameter_a + parameter_b\n " ,
628628 " \n " ,
629629 " \n " ,
630- " with Executor(max_cores=2, backend=\" flux \" ) as exe:\n " ,
630+ " with Executor(max_cores=2, backend=\" flux_allocation \" ) as exe:\n " ,
631631 " future_1 = exe.submit(\n " ,
632632 " calc_function,\n " ,
633633 " 1,\n " ,
672672 " ```\n " ,
673673 " from executorlib import Executor\n " ,
674674 " \n " ,
675- " with Executor(max_cores=1, backend=\" slurm \" ) as exe:\n " ,
675+ " with Executor(max_cores=1, backend=\" slurm_allocation \" ) as exe:\n " ,
676676 " future = exe.submit(sum, [1,1])\n " ,
677677 " print(future.result())\n " ,
678678 " ```"
You can’t perform that action at this time.
0 commit comments