Page MenuHomePhabricator

Backfill Edit Suggestion Counts in Linked Artifacts Cache for technical pilot
Open, Needs TriagePublic

Description

The technical pilot of Edit Suggestion Counts stored in Linked Artifacts cache (backed by Headless VE) will only enable suggestion counts for a deterministic sample of pages.

T433024: Implement sampling requirements for Headless VE technical pilot will determine the sample proportion.

Once that is decided, we should pre-warm / backfill these suggestions for the latest revision of the pages in the sample.

Since sampling is determined in VisualEditor edit check PHP code, a PHP maintenance script that iterates through all page_ids and 'warms' the cache for pages in sample would probably suffice.

The code recently added for T432733: Server Side Edit Suggestions - Linked Artifacts Cache precompute job could be factored out into a callable function from a MW Service.

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone
OpenNone
Openppelberg
Openppelberg
OpenNone
OpenNone
OpenEsanders
OpenEsanders
ResolvedEsanders
ResolvedEsanders
ResolvedEsanders
OpenEsanders
OpenEsanders
OpenEsanders
DuplicateNone
ResolvedOttomata
OpenEevans
OpenNone
ResolvedSpikeEsanders
OpenNone
OpenNone
ResolvedRscout
OpenNone
Openjhathaway
Resolveddchan
Resolveddchan
Openjhathaway

Event Timeline

I have never written or run a maintenance script.

Open question:

If we are running a maintenance script, does it make sense to have that script submit jobs to do this? Or should the script itself just warm the cache directly?

I think submitting jobs would be better, as the JobQueue will handle them asynchronously as quickly as it can, and hopefully throttle them where it needs to slow down?

I think submitting jobs would be better, as the JobQueue will handle them asynchronously as quickly as it can, and hopefully throttle them where it needs to slow down?

That seems sensible. We have written and run some maintenance scripts recently - it should be fairly straightforward (https://wikitech.wikimedia.org/wiki/Maintenance_scripts)