From 187ea4630153da1e115f5b1cf368d7fce431910c Mon Sep 17 00:00:00 2001 From: David Caro Date: Tue, 3 Nov 2026 11:05:33 +0100 Subject: [PATCH 1/2] run: return 404 if result sqlite does not exist This does not fix the reason why they are not there, just allows it to not crash in that case. Signed-off-by: David Caro --- quarry/web/run.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/quarry/web/run.py b/quarry/web/run.py index 4b383f7..42ba5cf 100644 --- a/quarry/web/run.py +++ b/quarry/web/run.py @@ -36,15 +36,17 @@ def output_result(qrun_id, resultset_id=0, format="json"): if not qrun: response = Response("No such query_run id", status=404) else: - reader = SQLiteResultReader( - qrun, current_app.config["OUTPUT_PATH_TEMPLATE"] - ) try: + reader = SQLiteResultReader( + qrun, current_app.config["OUTPUT_PATH_TEMPLATE"] + ) response = output.get_formatted_response( format, qrun, reader, resultset_id ) except sqlite3.OperationalError as e: - if e.args[0].startswith("no such table"): + if e.args[0].startswith("no such table") or e.args[0].startswith( + "unable to open database file" + ): response = Response("No such resultset id", status=404) else: raise From 730de14a598e8051ea5355c37417b2068a94d5ac Mon Sep 17 00:00:00 2001 From: Github Action Date: Tue, 3 Nov 2026 10:12:27 +0000 Subject: [PATCH 2/2] auto update of tag --- helm-quarry/values.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helm-quarry/values.yaml b/helm-quarry/values.yaml index 7972559..36d92d9 100644 --- a/helm-quarry/values.yaml +++ b/helm-quarry/values.yaml @@ -1,6 +1,6 @@ web: repository: 'quay.io/wikimedia-quarry/quarry' - tag: pr-110 # web tag managed by github actions + tag: pr-111 # web tag managed by github actions resources: requests: @@ -12,7 +12,7 @@ web: worker: repository: 'quay.io/wikimedia-quarry/quarry' - tag: pr-110 # worker tag managed by github actions + tag: pr-111 # worker tag managed by github actions resources: requests: memory: "400Mi"