Page MenuHomePhabricator

Use Channels for IPC in Rust Executor
Closed, ResolvedPublic

Description

Description

We currently don't handle stdin properly, which means that we can't actually separate the WASI runtime build step (which incurs a time cost) from the run step.
We could use a Chan to signal to a custom ReadPipe, used as the WASI runtime's stdin.
Likewise, a Chan in stdout (instead of a hacked-together Arc<RwLock<T>>) will improve things.

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

  • explore the use of Chans to improve IPC and concurrency in the Rust executor prototype

Completion checklist

Event Timeline

Change #1105363 had a related patch set uploaded (by Jforrester; author: Jforrester):

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2024-11-26-193226 to 2024-12-16-202347

https://gerrit.wikimedia.org/r/1105363

Change #1105363 merged by jenkins-bot:

[operations/deployment-charts@master] wikifunctions: Upgrade evaluators from 2024-11-26-193226 to 2024-12-16-202347

https://gerrit.wikimedia.org/r/1105363

Jdforrester-WMF triaged this task as High priority.