Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions ansys/rep/client/jms/resource/task_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class ResourceRequirements(Object):
memory : int, optional
cpu_core_usage : float, optional
disk_space : int, optional
distributed : bool, optional
custom : dict, optional

"""
Expand All @@ -29,12 +30,14 @@ def __init__(self,
memory=missing,
cpu_core_usage=missing,
disk_space=missing,
distributed=missing,
custom=missing
):
self.platform = platform
self.memory = memory
self.cpu_core_usage = cpu_core_usage
self.disk_space = disk_space
self.distributed = distributed
self.custom = custom

self.obj_type = self.__class__.__name__
Expand Down
3 changes: 3 additions & 0 deletions ansys/rep/client/jms/resource/task_definition_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class TemplateResourceRequirements(Object):
memory : TemplateProperty, optional
cpu_core_usage : TemplateProperty, optional
disk_space : TemplateProperty, optional
distributed : TemplateProperty, optional
custom : dict, optional

"""
Expand All @@ -64,12 +65,14 @@ def __init__(self,
memory=missing,
cpu_core_usage=missing,
disk_space=missing,
distributed=missing,
custom=missing
):
self.platform = platform
self.memory = memory
self.cpu_core_usage = cpu_core_usage
self.disk_space = disk_space
self.distributed = distributed
self.custom = custom

self.obj_type = self.__class__.__name__
Expand Down
1 change: 1 addition & 0 deletions ansys/rep/client/jms/schema/task_definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class Meta(BaseSchema.Meta):
memory = fields.Int(allow_none=True)
cpu_core_usage = fields.Float(allow_none=True)
disk_space = fields.Int(allow_none=True)
distributed = fields.Bool(allow_none=True)

custom = fields.Dict(allow_none=True)

Expand Down
1 change: 1 addition & 0 deletions ansys/rep/client/jms/schema/task_definition_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class Meta(BaseSchema.Meta):
memory = fields.Nested(TemplatePropertySchema, allow_none=True)
cpu_core_usage = fields.Nested(TemplatePropertySchema, allow_none=True)
disk_space = fields.Nested(TemplatePropertySchema, allow_none=True)
distributed = fields.Nested(TemplatePropertySchema, allow_none=True)
custom = fields.Dict(
keys=fields.String, values=fields.Nested(TemplatePropertySchema), allow_none=True
)
Expand Down