Manager sets status to started to aviod starting same tile twice
Signed-off-by: fly <merspieler@airmail.cc>
This commit is contained in:
parent
b34ecda5dd
commit
36dd490ed2
2 changed files with 3 additions and 2 deletions
|
@ -173,8 +173,10 @@ try:
|
||||||
# Build poles first
|
# Build poles first
|
||||||
if not "n-pole" in state or ("n-pole" in state and state["n-pole"]["status"] == get):
|
if not "n-pole" in state or ("n-pole" in state and state["n-pole"]["status"] == get):
|
||||||
tile = "n-pole"
|
tile = "n-pole"
|
||||||
|
state["n-pole"]["status"] = "started"
|
||||||
elif not "s-pole" in state or ("s-pole" in state and state["s-pole"]["status"] == get):
|
elif not "s-pole" in state or ("s-pole" in state and state["s-pole"]["status"] == get):
|
||||||
tile = "s-pole"
|
tile = "s-pole"
|
||||||
|
state["s-pole"]["status"] = "started"
|
||||||
else:
|
else:
|
||||||
ii = -8
|
ii = -8
|
||||||
|
|
||||||
|
@ -212,6 +214,7 @@ try:
|
||||||
name_minor = ew + norm(j, 3) + ns + norm(iii, 2)
|
name_minor = ew + norm(j, 3) + ns + norm(iii, 2)
|
||||||
if not name in state or (not name_minor in state[name] or (name_minor in state[name] and (state[name][name_minor]["status"] == get or state[name][name_minor]["status"] == "pending"))):
|
if not name in state or (not name_minor in state[name] or (name_minor in state[name] and (state[name][name_minor]["status"] == get or state[name][name_minor]["status"] == "pending"))):
|
||||||
tile = name_minor
|
tile = name_minor
|
||||||
|
state[name][name_minor]["status"] = "started"
|
||||||
break
|
break
|
||||||
iii += ns_step
|
iii += ns_step
|
||||||
j += ew_step
|
j += ew_step
|
||||||
|
|
|
@ -123,8 +123,6 @@ while running:
|
||||||
name = get_job(action)
|
name = get_job(action)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
send_status(name, "started")
|
|
||||||
|
|
||||||
run("mkdir -p projects/worldbuild-" + name, shell=True)
|
run("mkdir -p projects/worldbuild-" + name, shell=True)
|
||||||
|
|
||||||
run("cp projects/worldbuild/params.ini projects/worldbuild-" + name + "/", shell=True)
|
run("cp projects/worldbuild/params.ini projects/worldbuild-" + name + "/", shell=True)
|
||||||
|
|
Loading…
Reference in a new issue