From 3edd8a823231db2b5dd6e64a1d79c84a3ccf9440 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 aa8ea73d28..5039dfc0a5 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