Page MenuHomePhabricator

Evaluator-Orchestrator callbacks: Ensure one-at-a-time use of callbacks
Closed, ResolvedPublic

Description

Description

  • During the execution of a code implementation, only one callback should be running at a time. (This is to address security and stability concerns associated with these callbacks.)
    • This has been ensured with new code in Executor.js. If a callback is requested by implementation code while the Evaluator is awaiting the results from a previous callback, an error is returned.
  • Create a new unit test to verify this behavior.
    • This was explored but not implemented. Due to inherent limitations on implementation code blocks, we have not been able to create implementation code that causes the error condition. (For example, multithreaded code is not currently available in JavaScript or Python implementations.)

Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)

  • If a callback is in progress and the executor requests a second callback, the Evaluator notices and immediately rejects the entire operation, ultimately propagating an error back to the user.

Completion checklist

Event Timeline

DSantamaria removed DMartin-WMF as the assignee of this task.
DSantamaria assigned this task to DMartin-WMF.
DMartin-WMF changed the task status from Open to In Progress.Mar 30 2026, 6:20 AM
DMartin-WMF updated the task description. (Show Details)