Routing: reject a pre-merge multi-country request, don't resume a failed build, Apply queues when the running build lacks the merge
This commit is contained in:
1 parent
acf5256c74
commit
dbe1804ebf
2 files changed
+7
-2
No files matched your search
@@ -48,7 +48,7 @@ module Maptool
|
||||
|
||||
# Apply again while the same countries are building: nothing to queue.
|
||||
running = read_json(File.join(dir(data_dir), "staging", "request.json"))
|
||||
return if running && running[:regions] == codes && read_json(File.join(dir(data_dir), "status.json"))&.dig(:state) == "running"
|
||||
return if running && running[:regions] == codes && running.key?(:pbf) == (codes.size > 1) && read_json(File.join(dir(data_dir), "status.json"))&.dig(:state) == "running"
|
||||
|
||||
return if @merging&.dig(:state) == "running"
|
||||
|
||||
|
||||
Reference in new issue
Block a user