1Hive / apiary

Aragon DAO explorer
https://apiary.1hive.org
GNU General Public License v3.0
25 stars 16 forks source link

Crash entire worker if all worker threads crash #192

Closed onbjerg closed 4 years ago

onbjerg commented 4 years ago

It might happen that all of the worker threads (see perf branch) in a worker crashes and no work is being done. There are two ways to solve this:

Based on complexity, the first approach is a lot faster to implement. Based on "platform agnosticism" solution number 2 might be better, since not everyone who runs Apiary might have an underlying process manager that auto-restarts dead processes. However, I don't think the time and effort to support that case is worth it.