We’d like to set our Cryosparc instance to send all 3dflex jobs to a specific SLURM partition, and everything else to a different one. What should we put for the if statement?
The following fails:
{%- if job_type == 3dflex %}
#SBATCH --partition=3dflex
{%- else %}
#SBATCH --partition=All
{%- endif %}
The error:
ServerError: expected token 'end of statement block', got 'dflex'
Traceback (most recent call last):
File "/cryosparc-master/cryosparc_master/cryosparc_command/commandcommon.py", line 196, in wrapper
res = func(*args, **kwargs)
File "/cryosparc-master/cryosparc_master/cryosparc_command/command_core/__init__.py", line 1762, in add_scheduler_target_cluster
tpl_vars = parse_template_vars(new_target)
File "/cryosparc-master/cryosparc_master/cryosparc_command/command_core/__init__.py", line 1785, in parse_template_vars
tpl_ast = env.parse(target[template])
File "/cryosparc-master/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/jinja2/environment.py", line 535, in parse
self.handle_exception(source=source)
File "/cryosparc-master/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/jinja2/environment.py", line 832, in handle_exception
reraise(*rewrite_traceback_stack(source=source))
File "/cryosparc-master/cryosparc_master/deps/anaconda/envs/cryosparc_master_env/lib/python3.8/site-packages/jinja2/_compat.py", line 28, in reraise
raise value.with_traceback(tb)
File "<unknown>", line 13, in template
jinja2.exceptions.TemplateSyntaxError: expected token 'end of statement block', got 'dflex'
What’s the correct job_type for 3dflex jobs?