ruphin / mech

An open container orchestration framework
MIT License
2 stars 0 forks source link

uptime-manager/uptime.rb should catch and print exceptions in threads #5

Open FooBarWidget opened 9 years ago

FooBarWidget commented 9 years ago

The Rufus::Scheduler blocks spawn threads. You should explicit catch exceptions in those threads and print those exceptions. If you don't, then any exceptions that occur inside the thread only become apparent the moment you join those threads. Since you never join those threads, the exceptions are effectively swallowed.