wlandau / crew

A distributed worker launcher
https://wlandau.github.io/crew/
Other
129 stars 4 forks source link

avoid blocking the main process #3

Closed wlandau closed 2 years ago

wlandau commented 2 years ago

Problems/observations

Proposal

Establish an outer crew with callr workers. Each outer worker runs a crew of its own. These inner crews will interface to AWS Batch, GCP, etc., where launching and polling are the most costly in terms of runtime and blocking. Because all this slow stuff happens in outer callr workers, the main process will not be blocked. And it will be straightforward to control the number of outer vs inner workers.

Difficulty

I think this is perfectly doable with nested crews. We just need #2 to make sure jobs can access inner crews.

wlandau commented 2 years ago

Switching to #6.