Adding some limits and monitoring with iNotify

This commit is contained in:
Charles Care
2019-11-28 17:59:39 +00:00
parent 154c1ca7a3
commit 117b9f8de5

View File

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