Adopt the node_type field in receptor logic (#10802)

* Adopt the node_type field in receptor logic

* Refactor Instance.objects.register so we do not reset capacity to 0
This commit is contained in:
Alan Rominger
2021-08-04 10:59:44 -04:00
parent 5d4ab13386
commit f47eb126e2
5 changed files with 26 additions and 23 deletions

View File

@@ -76,6 +76,7 @@ class TaskManager:
SimpleNamespace(
obj=instance,
version=instance.version,
node_type=instance.node_type,
remaining_capacity=instance.remaining_capacity,
capacity=instance.capacity,
jobs_running=instance.jobs_running,