Skip to content

Commit

Permalink
feat(task): allow Compute4PUNCH backend options (#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 9b2a3d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The list of contributors in alphabetical order:
- [Dinos Kousidis](https://orcid.org/0000-0002-4914-4289)
- [Giuseppe Steduto](https://orcid.org/0009-0002-1258-8553)
- [Jan Okraska](https://orcid.org/0000-0002-1416-3244)
- [Manuel Giffels](https://orcid.org/0000-0003-0193-3032)
- [Marco Donadoni](https://orcid.org/0000-0003-2922-5505)
- [Marco Vidal](https://orcid.org/0000-0002-9363-4971)
- [Michael R. Crusoe](https://orcid.org/0000-0002-2961-9670)
Expand Down
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 9b2a3d0

Please sign in to comment.