hello:japan should run every second but it looks like it's being blocked to run every second by hello:world
Clockfile:
using RubyClock::DSL
every('5 seconds') do
rake('hello:world')
end
every('1 second') do
rake('hello:japan')
end
hello.rake:
namespace :hello do
task :world => :environment do
Rails.logger.info "hello world #{Time.now}"
sleep(10)
end
task :japan => :environment do
Rails.logger.info "hello japan #{Time.now}"
end
end
Logs:
hello japan 2024-07-22 03:48:40 +0000
hello japan 2024-07-22 03:48:42 +0000
hello japan 2024-07-22 03:48:43 +0000
hello japan 2024-07-22 03:48:43 +0000
hello world 2024-07-22 03:48:45 +0000
hello japan 2024-07-22 03:48:55 +0000
hello japan 2024-07-22 03:48:55 +0000
hello japan 2024-07-22 03:48:55 +0000
hello japan 2024-07-22 03:48:55 +0000
hello japan 2024-07-22 03:48:55 +0000
hello world 2024-07-22 03:48:55 +0000
hello japan 2024-07-22 03:49:05 +0000
hello japan 2024-07-22 03:49:05 +0000
hello japan 2024-07-22 03:49:05 +0000
hello japan 2024-07-22 03:49:05 +0000
hello japan 2024-07-22 03:49:05 +0000
hello world 2024-07-22 03:49:05 +0000
hello:japan
should run every second but it looks like it's being blocked to run every second byhello:world
Clockfile:
hello.rake:
Logs: