Skip to content

Commit

Permalink
rename max_tasks -> max_queued_tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffkinnison committed Aug 6, 2019
1 parent 6da05db commit 4d8f6c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions shadho/hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ComputeClass(object):
The name of the resource common to this group.
value
The value of the resource common to this group.
max_tasks : int
max_queued_tasks : int
The maximum number of tasks to queue. Recommended to be 1.5-2x the
number of expected nodes with this resource.
Expand All @@ -48,7 +48,7 @@ class ComputeClass(object):
The name of the resource common to this group.
value
The value of the resource common to this group.
max_tasks : int
max_queued_tasks : int
The maximum number of tasks to queue. Recommended to be 1.5-2x the
number of expected nodes with this resource.
current_tasks : int
Expand All @@ -60,12 +60,12 @@ class ComputeClass(object):
--------
`pyrameter.ModelGroup`
"""
def __init__(self, name, resource, value, max_tasks, optimizer):
def __init__(self, name, resource, value, max_queued_tasks, optimizer):
self.id = str(uuid.uuid4())
self.name = name
self.resource = resource
self.value = value
self.max_tasks = max_tasks
self.max_queued_tasks = max_queued_tasks
self.current_tasks = 0
self.optimizer = optimizer

Expand Down

0 comments on commit 4d8f6c0

Please sign in to comment.