지정된 간격마다 실행되는 작업을 생성하는 방법에 대한 예제를 본 적이 있습니다:
after_initialize do
module ::Jobs
class PluginTestJob < ::Jobs::Scheduled
every 30.seconds
def execute(args)
puts "Get the job done"
end
end
end
end
예를 들어 태평양 시간으로 매일 밤 9시 정각에 작업이 실행되도록 예약하는 방법을 알고 싶습니다.