Description
This error has resulted from several different countries that I've tested. This is somewhat striking for the following reasons:
- Calling Z6821/Fetch Wikidata item Canada currently works with orchestrator elapsed time less than 2 seconds
- but the call to Z28445 is timing out after 10 seconds
- Z28445 is written to only fetch the given entity (e.g., Canada) once, and the other processing shouldn't be very time-consuming:
- It iterates over the entity statements to select those with a specified property, And then iterates over those statements to select those from a given year
- It also fetches the property and extracts its label for the given natural language
- Z28445 currently works when called on a large city like Chicago
Steps to reproduce (step by step instructions, with links, commands and necessary data to reproduce the error)
- Visit Most recent year-specific sentence about item
- In the "try a function" box, enter the arguments Canada, population, and English
- Click on Run function
- When it's done, Click on Details
Observed behavior
- Reached time limit in orchestrator (time limit: "10000 ms")
Expected behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)
- Successful completion in less than 10 seconds
Completion checklist
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Back-end_Task/Bug_completion_checklist