Page MenuHomePhabricator

Callback endpoint: Consider setting the timeout relative to the top level call
Closed, DuplicatePublic

Description

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