Commit 1266061a authored by Ioannis Papagiannopoulos's avatar Ioannis Papagiannopoulos Committed by Georgios Dagkakis

getEntity and removeEntity of Queue updated for trigger level control

parent 5d9955d5
......@@ -173,7 +173,7 @@ class Queue(CoreObject):
# check if the queue is empty, if yes then try to signal the router, operators may need reallocation
try:
if self.level:
if not len(self.getActiveObjectQueue()):
if not len(self.getActiveObjectQueue()) and self.checkForDedicatedOperators():
self.requestAllocation()
except:
pass
......@@ -199,7 +199,7 @@ class Queue(CoreObject):
# if the level is reached then try to signal the Router to reallocate the operators
try:
if self.level:
if len(self.getActiveObjectQueue())==self.level:
if len(self.getActiveObjectQueue())==self.level and self.checkForDedicatedOperators():
self.requestAllocation()
except:
pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment