Skip to content

Commit

Permalink
feat(task): allow Compute4PUNCH backend options (reanahub#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
giffels authored and mdonadoni committed Jul 4, 2024
1 parent 97ff214 commit 168ebca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions reana_workflow_engine_cwl/cwl_reana.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,9 @@ def shouldquote(x):
kubernetes_uid = self._get_hint("kubernetes_uid")
kubernetes_memory_limit = self._get_hint("kubernetes_memory_limit")
kubernetes_job_timeout = self._get_hint("kubernetes_job_timeout")
c4p_cpu_cores = self._get_hint("c4p_cpu_cores")
c4p_memory_limit = self._get_hint("c4p_memory_limit")
c4p_additional_requirements = self._get_hint("c4p_additional_requirements")
create_body = {
"image": container,
"cmd": wrapped_cmd,
Expand All @@ -290,6 +293,9 @@ def shouldquote(x):
"kubernetes_job_timeout": kubernetes_job_timeout,
"slurm_partition": slurm_partition,
"slurm_time": slurm_time,
"c4p_cpu_cores": c4p_cpu_cores,
"c4p_memory_limit": c4p_memory_limit,
"c4p_additional_requirements": c4p_additional_requirements,
}

return create_body
Expand Down

0 comments on commit 168ebca

Please sign in to comment.