From 9e2f829c510d8cd225e055c2a1884f648e8490ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Degrave?= Date: Wed, 22 May 2024 12:37:00 +0200 Subject: [PATCH] [fix] queue_job: JobsTrap.perform_enqueued_jobs Closes #651 --- queue_job/tests/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/queue_job/tests/common.py b/queue_job/tests/common.py index 6b52cfba7f..c463d3456d 100644 --- a/queue_job/tests/common.py +++ b/queue_job/tests/common.py @@ -228,12 +228,12 @@ def by_graph(job): return job.graph_uuid or "" sorted_jobs = sorted(self.enqueued_jobs, key=by_graph) + self.enqueued_jobs = [] for graph_uuid, jobs in groupby(sorted_jobs, key=by_graph): if graph_uuid: self._perform_graph_jobs(jobs) else: self._perform_single_jobs(jobs) - self.enqueued_jobs = [] def _perform_single_jobs(self, jobs): # we probably don't want to replicate a perfect order here, but at