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
c0306b47
Commit
c0306b47
authored
Nov 19, 2014
by
Georgios Dagkakis
Committed by
Jérome Perrin
Feb 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
broker not to search for operator if the operator is dedicated and already in the machine
parent
7731e8ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
dream/simulation/OperatedPoolBroker.py
dream/simulation/OperatedPoolBroker.py
+3
-1
No files found.
dream/simulation/OperatedPoolBroker.py
View file @
c0306b47
...
@@ -116,7 +116,9 @@ class Broker(ObjectInterruption):
...
@@ -116,7 +116,9 @@ class Broker(ObjectInterruption):
self
.
waitForOperator
=
False
self
.
waitForOperator
=
False
self
.
victim
.
printTrace
(
self
.
victim
.
id
,
resourceAvailable
=
'(broker)'
)
self
.
victim
.
printTrace
(
self
.
victim
.
id
,
resourceAvailable
=
'(broker)'
)
# else if the Router is already invoked for allocating purposes wait until a resource is allocated to the victim's operatorPool
# else if the Router is already invoked for allocating purposes wait until a resource is allocated to the victim's operatorPool
elif
G
.
Router
.
invoked
and
G
.
Router
.
allocation
:
# wait only if there is no current operator
# XXX discuss this
elif
G
.
Router
.
invoked
and
G
.
Router
.
allocation
and
not
self
.
victim
.
currentOperator
:
self
.
waitForOperator
=
True
self
.
waitForOperator
=
True
self
.
victim
.
printTrace
(
self
.
victim
.
id
,
waitEvent
=
'(resourceIsAvailable broker)'
)
self
.
victim
.
printTrace
(
self
.
victim
.
id
,
waitEvent
=
'(resourceIsAvailable broker)'
)
...
...
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