[projects/pld-builder.new] builder: publish the queue before writing queue.html
arekm
arekm at pld-linux.org
Fri Nov 13 11:26:34 CET 2026
commit ba6d742b96bdfd451303fbca6c70bffad3d24ff4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Nov 12 23:10:59 2026 +0100
builder: publish the queue before writing queue.html
A failure while writing queue.html or queue.txt left queue.gz unpublished,
so the bin builders got no new requests. They now get the queue first.
PLD_Builder/request_handler.py | 3 ++-
PLD_Builder/srpm_builder.py | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/PLD_Builder/request_handler.py b/PLD_Builder/request_handler.py
index 7a7922e..b2302e3 100644
--- a/PLD_Builder/request_handler.py
+++ b/PLD_Builder/request_handler.py
@@ -160,9 +160,10 @@ def handle_notification(r, user):
return True
q.requests = list(filter(leave_it, q.requests))
q.write()
+ # what the bin builders take their work from; what only shows the queue comes after
+ q.write_signed(path.req_queue_signed_file)
q.dump(path.queue_stats_file)
q.dump_html(path.queue_html_stats_file)
- q.write_signed(path.req_queue_signed_file)
q.unlock()
return HTTPStatus.OK
diff --git a/PLD_Builder/srpm_builder.py b/PLD_Builder/srpm_builder.py
index a707bd5..1b86853 100644
--- a/PLD_Builder/srpm_builder.py
+++ b/PLD_Builder/srpm_builder.py
@@ -62,10 +62,10 @@ def store_binary_request(r):
q.read()
q.add(r)
q.write()
+ # what the bin builders take their work from; what only shows the queue comes after
+ q.write_signed(path.req_queue_signed_file)
q.dump(path.queue_stats_file)
q.dump_html(path.queue_html_stats_file)
-
- q.write_signed(path.req_queue_signed_file)
q.unlock()
def transfer_file(r, b):
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/3ee02bef4218fd68c1905b7ef38afeb6fe69a59e
More information about the pld-cvs-commit
mailing list