wlandau / crew

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

Avoid shutdown jobs #14

Closed wlandau closed 2 years ago

wlandau commented 2 years ago

Prework

Description

My early attempts at task queues explored the idea of using a special job to shut down a worker. This shutdown method is proving to be unreliable, and it is too important to fail. The technique for shutting down workers will need to be backend-specific, and this is not always available. For batchtools futures, in the absence of https://github.com/HenrikBengtsson/future/issues/93, those workers will need to be transient. But I still think batchtools futures will make a nice task queue because async can speed up the startup/polling/cleanup for large collections of futures (i.e. to work around https://github.com/HenrikBengtsson/future/discussions/602).

wlandau commented 2 years ago

Got it figured out in branch 11.