.autovacuum
+ self._cr.execute(
+ "CREATE INDEX queue_job_channel_date_done_date_created_index "
+ "ON queue_job (channel, date_done, date_created);"
+ )
@api.depends("records")
def _compute_record_ids(self):
@@ -396,6 +401,7 @@ def autovacuum(self):
("date_cancelled", "<=", deadline),
("channel", "=", channel.complete_name),
],
+ order="date_done, date_created",
limit=1000,
)
if jobs:
diff --git a/queue_job/static/description/index.html b/queue_job/static/description/index.html
index 5b5cab55a0..c0bc6ee76d 100644
--- a/queue_job/static/description/index.html
+++ b/queue_job/static/description/index.html
@@ -372,7 +372,7 @@ Job Queue
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-!! source digest: sha256:09e503d2be6fc74fe0001d75f167ae42a219d35ff383990befca5a5248e505b9
+!! source digest: sha256:9f7dad42fbcb042d09ea5124a82257167c8d6bf4ebc51f97999e9031e8c7eb23
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

This addon adds an integrated Job Queue to Odoo.