Skip to content

Commit 56a54fa

Browse files
authored
Merge pull request #230 from ga4gh/132-fractional
fractional resource requirements for CWL 1.1 and 1.2 spec Closes #139
2 parents d329ca1 + 95f33f3 commit 56a54fa

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

Diff for: openapi/task_execution_service.openapi.yaml

+15-10
Original file line numberDiff line numberDiff line change
@@ -610,10 +610,10 @@ components:
610610
type: object
611611
properties:
612612
cpu_cores:
613-
type: integer
614-
description: Requested number of CPUs
615-
format: int32
616-
example: 4
613+
type: number
614+
description: Requested number of CPUs. MAY be a fractional value to indicate to a scheduling algorithm that one core can be allocated to multiple jobs. For example, a value of 0.25 indicates that up to 4 jobs may run in parallel on 1 core. A value of 1.25 means that up to 3 jobs can run on a 4 core system (4/1.25 ≈ 3). Processes sharing a core MUST have the same level of isolation (typically a container or VM) that they would normally have. Scheduling systems MAY allocate fractional CPU resources by setting quotas or scheduling weights. Scheduling systems that do not support fractional CPUs MAY round up the request to the next whole number.
615+
format: double
616+
example: 4.25
617617
preemptible:
618618
type: boolean
619619
description: |-
@@ -624,14 +624,19 @@ components:
624624
example: false
625625
ram_gb:
626626
type: number
627-
description: Requested RAM required in gigabytes (GB)
628-
format: double
629-
example: 8
627+
description: |-
628+
Requested RAM required in gigabytes (GB)
629+
(maybe fractional, but actual requested memory should
630+
be rounded up to the next whole number of bytes)
631+
format: float
632+
example: 8.2
630633
disk_gb:
631634
type: number
632-
description: Requested disk size in gigabytes (GB)
633-
format: double
634-
example: 40
635+
description: |-
636+
Requested disk size in gigabytes (GB)
637+
(maybe fractional, but actual request disk should be rounded up)
638+
format: float
639+
example: 40.5
635640
zones:
636641
type: array
637642
description: |-

0 commit comments

Comments
 (0)