Page MenuHomePhabricator

SPIKE: Investigate why linksearchtotal_collect.py is not working
Closed, ResolvedPublic

Description

python manage.py linksearchtotal_collect

has not run since Aug. 18, 2025, and when I manually try to run it, it just hangs.

This spike is to investigate why and fix it so that we can run the command again.

Details

Other Assignee
Kgraessle

Event Timeline

jsn.sherman changed the task status from Open to In Progress.EditedAug 29 2025, 7:35 PM
jsn.sherman moved this task from Ready (Maintenance) to QA on the Moderator-Tools-Team (Kanban) board.

hotfix pushed:
https://github.com/WikipediaLibrary/externallinks/commit/5391e1bcb3f6f3e9a33623886060f0af57a309a9
I tested this directly in production, so it's known working. It looks like we're currently caught up. I reverted the server-side change upon committing my work, so we're waiting on the deployment for it to be in for real. Note that the hotfix has print statements to allow CLI debugging; we'll replace with proper logging before closing

and we're running the hotfix now; I have a small pile of notes for followup, but let's leave this in qa for now while we see what happens on the next scheduled run (9/1)

Sounds good; thanks for getting this fixed!

Was the query just running too long?

Yep, and I'll have some follow-up to make this more robust.

I verified that we have linksearch totals for 9/1, so I'll go ahead and flesh this out the rest of the way.

Merged! We can QA this ticket at our engineering meeting tomorrow.

note that I'll need to update retry/error handling a bit for swift uploads

Scardenasmolinar moved this task from QA to Done on the Moderator-Tools-Team (Kanban) board.

Checked the admin, and we can see results from the 15th.