Adding some limits and monitoring with iNotify

This commit is contained in:
Charles Care
2019-11-28 18:05:12 +00:00
parent c3edc56ec6
commit 749ebd959a

View File

@@ -38,8 +38,8 @@ module Pipeline::Util
notifier = INotify::Notifier.new
notifier.watch("#{workdir}/iteration", :moved_to, :create) do |event|
puts "!!!!!!!!!!! #{event.name} is now in iteration!"
puts event
notifier.watch("{workdir}/iteration/#{event.name}", :modify) do |event|
puts event.to_h
notifier.watch("#{workdir}/iteration/#{event.name}", :modify) do |event|
puts event
end
end