Better HN
topnewbestaskshowjobs
Log inSign up

constantin0

3 karma · joined Jun 3, 2024 (2y ago) · 1 submissions

Submissions

comment 2y ago · link · parent

The same kind of issue prevents Celery (a python task queue) "soft timeout" feature from working reliably.

It throws an exception _anywhere_ in the worker process to signal the timeout, but in practice the exception is often eaten by too-generic except blocks in library code and never reaches user code.

An interesting solution is structured concurrency because it introduces "raise-safe" points (the "await"s), but the ecosystem is not there yet.