common-workflow-language / common-workflow-language/cwltool

cwltool doesn't complain when max is lesser than min in ResourceRequirements

Open
#2,163 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
376
Forks
255
Avg merge
2d 7h
Merged PRs (30d)
12

Description

Following this discussion: https://cwl.discourse.group/t/how-does-resourcerequirement-work/1019, `cwltool` does not validate whether `resourceMax` is greater than `resourceMin` in ResourceRequirements.

According to the [CWL documentation](https://www.commonwl.org/v1.2/CommandLineTool.html#ResourceRequirement), this should not be allowed, as it states: "It is an error if max < min.".

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.