Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
batsim
pybatsim
Commits
e44b1548
Commit
e44b1548
authored
Nov 29, 2018
by
MERCIER Michael
Browse files
[sched] fix profile double registration
parent
8950a371
Changes
1
Show whitespace changes
Inline
Side-by-side
schedulers/schedBebida.py
View file @
e44b1548
...
...
@@ -481,7 +481,7 @@ class SchedBebida(BatsimScheduler):
new_job
.
profile_dict
[
"seq"
]
=
old_job
.
profile_dict
[
"seq"
][
curr_task
:]
# Store the new job profile to be submitted if not
# already registerd
# already register
e
d
to_submit
=
{}
if
new_job
.
profile
not
in
self
.
bs
.
profiles
[
new_job
.
workload
]:
to_submit
=
{
new_job
.
profile
:
new_job
.
profile_dict
}
...
...
@@ -516,6 +516,7 @@ class SchedBebida(BatsimScheduler):
new_job
=
copy
.
deepcopy
(
old_job
)
new_job
.
profile
=
old_job
.
profile
+
"#"
+
str
(
curr_task
)
new_job
.
profile_dict
[
"seq"
]
=
old_job
.
profile_dict
[
"seq"
][
curr_task
:]
if
new_job
.
profile
not
in
self
.
bs
.
profiles
[
new_job
.
workload
]:
self
.
bs
.
register_profiles
(
new_job
.
workload
,
{
new_job
.
profile
:
new_job
.
profile_dict
})
...
...
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