Page MenuHomePhabricator

Many temp tables hanging around in Civi
Closed, ResolvedPublic

Description

Some of these go back to May (when we started creating batch entry import jobs).
Some of them were for user jobs for imports that were draft (for testing). I've deleted these and we should try to do a better job of cleaning up our test imports in the future.
Others are because the expires_date for the user_job is null (but should be set). To investigate why there is no date here, fix in core — and then check if this covers all of them.

Event Timeline

Upstream PR to set expiration date for search batch imports.

Once this is deployed, I can delete all the old batches that don't have expiration dates.

XenoRyet triaged this task as Medium priority.Feb 17 2026, 9:10 PM

Change #1244101 had a related patch set uploaded (by Lars SG; author: Lars SG):

[wikimedia/fundraising/crm@master] Manage expiration date for user jobs on status change

https://gerrit.wikimedia.org/r/1244101

Change #1244101 merged by Eileen:

[wikimedia/fundraising/crm@master] Manage expiration date for user jobs on status change

https://gerrit.wikimedia.org/r/1244101

@Jgreen This should keep our tmp table in civicrm under control in the future. I've deleted a bunch of old import jobs / tables from before this change.

@Jgreen This should keep our tmp table in civicrm under control in the future. I've deleted a bunch of old import jobs / tables from before this change.

That's great. Also I modified the database backups to dump these tables separately, which keeps them from tripping up the main civicrm backup when they disappear mid-backup.

XenoRyet set Final Story Points to 4.