lib/diffend/monitor.rb in diffend-monitor-0.2.38 vs lib/diffend/monitor.rb in diffend-monitor-0.2.39
- old
+ new
@@ -37,9 +37,13 @@
Thread.new do
config = nil
retry_count = 0
+ # There is an issue if we start to fast and there are gems that require things,
+ # it may break the execution. That's why we want to give the application time to boot.
+ sleep(0.5)
+
loop do
config = Diffend::Config.new(
command: Diffend::Commands::EXEC,
severity: Diffend::Logger::FATAL
)