Page MenuHomePhabricator

Wikifunctions backend services: Gather and propagate freshness info
Closed, ResolvedPublic

Description

Description

Implement gathering and propagation of freshness info (info regarding use of cached content) in the Orchestrator and Evaluator for result freshening (27Q1 hypothesis).

  • As specified in T433454, for this hypothesis this info only includes the Wikidata entities retrieved from Orchestrator memcached for the current function-call request.
  • This info will be returned to WikiLambda in a de-duplicated list, the value of a new metadata property cachedWikidataEntities. This will be a list of entity IDs (strings).

Completion checklist

Event Timeline

DMartin-WMF changed the task status from Open to In Progress.Sep 4 2026, 4:50 PM

apine merged https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-orchestrator/-/merge_requests/812

Result freshening: Report Wikidata entities retrieved from memcached, add request flag getFreshResult

Change #1344282 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2026-09-16-212211 to 2026-09-23-002803

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

Change #1344282 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2026-09-16-212211 to 2026-09-23-002803

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

Change #1344297 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2026-09-16-212211 to 2026-09-22-135346

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

Change #1344297 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2026-09-16-212211 to 2026-09-22-135346

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

apine merged https://gitlab.wikimedia.org/repos/abstract-wiki/wikifunctions/function-orchestrator/-/merge_requests/848

logging: Augment function-call logs with values of getFreshResult and cachedWikidataEntities

Change #1346613 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2026-09-23-042024 to 2026-09-30-134715

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

Change #1346613 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade orchestrator from 2026-09-23-042024 to 2026-09-30-134715

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