From 461645d1978e87b3bf033513b5636039ffe5e435 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20K=C3=BCnzel?= <simonk@fsmpi.rwth-aachen.de>
Date: Fri, 2 May 2025 02:42:43 +0200
Subject: [PATCH] Fix sorter missing argument

---
 job_controller/jobs/source_file_sorter/job.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/job_controller/jobs/source_file_sorter/job.py b/job_controller/jobs/source_file_sorter/job.py
index 8d897e2..0bba22a 100644
--- a/job_controller/jobs/source_file_sorter/job.py
+++ b/job_controller/jobs/source_file_sorter/job.py
@@ -291,7 +291,7 @@ def execute(database, own_job_id, input_data: CJsonObject):
         # Sort every file in its own transaction to reduce blocking the database
         try:
             database.execute_write_transaction_and_commit(
-                _sort_file, own_job_id, db_path,
+                _sort_file, own_job_id, db_path, on_transaction_failure,
             )
         except Exception:
             if on_transaction_failure.func is not None:
-- 
GitLab