mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-24 15:36:27 +00:00
Add a little helpful not to tasklist ordering warning
This commit is contained in:
parent
caf5d6af15
commit
9101b2e9ec
1 changed files with 4 additions and 2 deletions
|
@ -172,6 +172,7 @@ def check_ordering(task):
|
||||||
if task.phase < successor.phase:
|
if task.phase < successor.phase:
|
||||||
log.warn("The task {task} is specified as running before {other} "
|
log.warn("The task {task} is specified as running before {other} "
|
||||||
"although its phase '{phase}' already lies before the phase '{other_phase}' "
|
"although its phase '{phase}' already lies before the phase '{other_phase}' "
|
||||||
|
"(or the task has been placed in the wrong phase)"
|
||||||
.format(task=task, other=successor, phase=task.phase, other_phase=successor.phase))
|
.format(task=task, other=successor, phase=task.phase, other_phase=successor.phase))
|
||||||
for predecessor in task.predecessors:
|
for predecessor in task.predecessors:
|
||||||
# Run through all successors and throw an error if the phase of the task
|
# Run through all successors and throw an error if the phase of the task
|
||||||
|
@ -184,6 +185,7 @@ def check_ordering(task):
|
||||||
if task.phase > predecessor.phase:
|
if task.phase > predecessor.phase:
|
||||||
log.warn("The task {task} is specified as running after {other} "
|
log.warn("The task {task} is specified as running after {other} "
|
||||||
"although its phase '{phase}' already lies after the phase '{other_phase}' "
|
"although its phase '{phase}' already lies after the phase '{other_phase}' "
|
||||||
|
"(or the task has been placed in the wrong phase)"
|
||||||
.format(task=task, other=predecessor, phase=task.phase, other_phase=predecessor.phase))
|
.format(task=task, other=predecessor, phase=task.phase, other_phase=predecessor.phase))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue