Fix issues with engine name

This commit is contained in:
Brett Williams
2023-05-22 19:15:02 -05:00
parent 49c138968d
commit 861df5f215
3 changed files with 10 additions and 9 deletions

View File

@@ -153,7 +153,7 @@ class RenderQueue:
not_started = cls.jobs_with_status(RenderStatus.NOT_STARTED, priority_sorted=True)
if not_started:
for job in not_started:
renderer = job.worker.engine.name
renderer = job.worker.engine.name()
higher_priority_jobs = [x for x in cls.running_jobs() if x.priority < job.priority]
max_renderers = renderer in instances.keys() and instances[
renderer] >= cls.maximum_renderer_instances.get(renderer, 1)
@@ -191,7 +191,7 @@ class RenderQueue:
@classmethod
def renderer_instances(cls):
from collections import Counter
all_instances = [x.worker.engine.name for x in cls.running_jobs()]
all_instances = [x.worker.engine.name() for x in cls.running_jobs()]
return Counter(all_instances)
@classmethod