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
- 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