Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
1266061a
Commit
1266061a
authored
Jul 24, 2014
by
Ioannis Papagiannopoulos
Committed by
Georgios Dagkakis
Sep 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
getEntity and removeEntity of Queue updated for trigger level control
parent
5d9955d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dream/simulation/Queue.py
dream/simulation/Queue.py
+2
-2
No files found.
dream/simulation/Queue.py
View file @
1266061a
...
@@ -173,7 +173,7 @@ class Queue(CoreObject):
...
@@ -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
# check if the queue is empty, if yes then try to signal the router, operators may need reallocation
try
:
try
:
if
self
.
level
:
if
self
.
level
:
if
not
len
(
self
.
getActiveObjectQueue
()):
if
not
len
(
self
.
getActiveObjectQueue
())
and
self
.
checkForDedicatedOperators
()
:
self
.
requestAllocation
()
self
.
requestAllocation
()
except
:
except
:
pass
pass
...
@@ -199,7 +199,7 @@ class Queue(CoreObject):
...
@@ -199,7 +199,7 @@ class Queue(CoreObject):
# if the level is reached then try to signal the Router to reallocate the operators
# if the level is reached then try to signal the Router to reallocate the operators
try
:
try
:
if
self
.
level
:
if
self
.
level
:
if
len
(
self
.
getActiveObjectQueue
())
==
self
.
level
:
if
len
(
self
.
getActiveObjectQueue
())
==
self
.
level
and
self
.
checkForDedicatedOperators
()
:
self
.
requestAllocation
()
self
.
requestAllocation
()
except
:
except
:
pass
pass
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment