Skip to content

Commit ba57d32

Browse files
committed
Merge PR OCA#655 into 15.0
Signed-off-by guewen
2 parents 897b946 + d8499b1 commit ba57d32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

queue_job/tests/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,12 @@ def by_graph(job):
227227
return job.graph_uuid or ""
228228

229229
sorted_jobs = sorted(self.enqueued_jobs, key=by_graph)
230+
self.enqueued_jobs = []
230231
for graph_uuid, jobs in groupby(sorted_jobs, key=by_graph):
231232
if graph_uuid:
232233
self._perform_graph_jobs(jobs)
233234
else:
234235
self._perform_single_jobs(jobs)
235-
self.enqueued_jobs = []
236236

237237
def _perform_single_jobs(self, jobs):
238238
# we probably don't want to replicate a perfect order here, but at

0 commit comments

Comments
 (0)