Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CONF
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UvA
CONF
Commits
058ee21c
Commit
058ee21c
authored
Jun 07, 2017
by
Spiros Koulouzis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug #71
parent
f3bc4fd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
rpc_server.py
drip-planner/rpc_server.py
+17
-5
No files found.
drip-planner/rpc_server.py
View file @
058ee21c
...
...
@@ -84,17 +84,29 @@ def handleDelivery(message):
#print deadline
#print len(nodesList)
#for i in len(nodesList):
#Spiros: Manually set price and preformace arrays. This is a hack to make the planner work
price
=
""
prefix
=
""
for
i
in
reversed
(
xrange
(
len
(
nodesList
))):
#price += str(i)","
price
=
price
+
prefix
+
str
(
i
+
1
)
prefix
=
","
wfJson
[
'price'
]
=
"9,8,7,6,5,2,1"
prefix
=
""
performance_str
=
""
for
j
in
range
(
1
,
len
(
nodesList
)
+
1
):
performance_str
=
performance_str
+
prefix
+
str
(
j
)
prefix
=
","
wfJson
[
'price'
]
=
price
#"9,8,7,6,5,2,1"
wfJson
[
'deadline'
]
=
{
'2'
:
deadline
}
#generate performance
performance
=
{}
for
key
,
value
in
sorted_nodeDic
:
performance
[
str
(
value
)]
=
"1,2,3,4,5,6,7"
performance
[
str
(
value
)]
=
performance_str
#
"1,2,3,4,5,6,7"
wfJson
[
'performance'
]
=
performance
#print wfJson
...
...
@@ -118,7 +130,7 @@ def handleDelivery(message):
for
key
,
value
in
sorted_nodeDic
:
if
json1
[
nodeDic1
[
value
]]
.
get
(
'artifacts'
)
is
None
:
print
key
#
print key
#print json1[nodeDic1[value]]
continue
...
...
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