Description
When a callback comes in from the Evaluator, currently we set a timeout, taken from the environment, which is the same as the timeout for a top-level call coming into the Orchestrator. It would be cleaner and occasionally save some unnecessary processing, if we arrange for the timeout to be the remaining time relative to the timeout of the top-level call. One way to do this would be to communicate the remaining time to the callback endpoint as part of the request coming in from the Evaluator. (Not necessarily saying that's the only or best way.)
Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)
- Orchestrator processing of a callback would be terminated when the time limit of the corresponding top level call is reached.
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