Routing: reject a pre-merge multi-country request, don't resume a failed build, Apply queues when the running build lacks the merge
CI / check (push) Successful in 17s
CI / deploy (push) Successful in 27s

This commit is contained in:
randy committed 2026-11-14 12:13:25 +01:00
1 parent acf5256c74
commit dbe1804ebf
2 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -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"