Skip to content

Fork Sync Branch 19.0 - #31

Merged
btl-bot merged 3 commits into
BTLzdravtech:19.0from
ingadhoc:19.0
Nov 12, 2026
Merged

btl-bot merged 3 commits into
BTLzdravtech:19.0from
ingadhoc:19.0

Conversation

@btl-bot

@btl-bot btl-bot commented Nov 12, 2026

Copy link
Copy Markdown

No description provided.

vib-adhoc and others added 3 commits November 5, 2026 16:46
Translations are no longer synced through Weblate or Transifex,
so nothing installs these modules anymore.

closes #496

X-original-commit: 443c66b
Signed-off-by: Andrés Zacchino <az@adhoc.inc>
Signed-off-by: Virginia Bonservizi <vib@adhoc.com.ar>
The query that picks the next job filtered bg_job by state with no
index, so it read the whole table on every call, even with nothing in
the queue. Its cost grew with the history of finished jobs, which was
never deleted.

- Add a partial index on (priority, create_date, id) for enqueued jobs.
  It serves _get_next_job and _has_eligible_jobs.
- Delete finished jobs after a retention period, in an autovacuum that
  works in committed batches of 10000: done and canceled after 30 days,
  failed after 90 (base_bg.done_retention_days and
  base_bg.failed_retention_days, 0 keeps them forever). The first run
  clears the existing backlog batch by batch.
- Index next_job_id: without it, deleting each job scanned the table to
  clear the self-referencing foreign key.

closes #506

Signed-off-by: Nicolas Mac Rouillon <nmr@adhoc.inc>

@sireko sireko left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Auto approved

@btl-bot
btl-bot merged commit 9d677e6 into BTLzdravtech:19.0 Nov 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants