WIP: cleanup: launch a vacuum for cleaned up tables (#80236) #118

Draft
pducroquet wants to merge 1 commits from wip/80236-vacuum-at-cleanup into main
Owner
No description provided.
pducroquet added 1 commit 2023-08-21 11:33:45 +02:00
gitea/authentic/pipeline/head There was a failure building this commit Details
9f1ca63aa6
cleanup: launch a vacuum for cleaned up tables (#80236)
Author
Owner

Je bloque sur la transaction pour le moment, je ne vois pas comment repousser une exécution à après la transaction...

Je bloque sur la transaction pour le moment, je ne vois pas comment repousser une exécution à après la transaction...
smihai reviewed 2023-08-22 13:47:24 +02:00
@ -404,2 +405,3 @@
threshold = now() - timedelta(days=retention_days)
Event.objects.filter(type__in=event_types).filter(timestamp__lt=threshold).delete()
deleted, _ = Event.objects.filter(type__in=event_types).filter(timestamp__lt=threshold).delete()
deleted_entries += deleted
Owner

deleted_entries n'est pas utilisé. Tu voulais le logguer ou plutôt faire un return deleted_entries ?

`deleted_entries` n'est pas utilisé. Tu voulais le logguer ou plutôt faire un `return deleted_entries` ?
Some checks failed
gitea/authentic/pipeline/head There was a failure building this commit
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b wip/80236-vacuum-at-cleanup main
git pull origin wip/80236-vacuum-at-cleanup

Step 2:

Merge the changes and update on Gitea.
git checkout main
git merge --no-ff wip/80236-vacuum-at-cleanup
git push origin main
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: entrouvert/authentic#118
No description provided.