0
동일한 작업을 두 번 실행하고 있습니다. 하나는 30 분 후 하나는 120 분 후입니다.지연된 작업 구문
것은 내가 지금이 방법을 쓰고 있어요,하지만 난 주위에 더 나은 방법이 확신이
def postpone_30_min
// same task
end
handle_asynchronously :postpone_30_min, :run_at => Proc.new { 30.minutes.from_now }
def postpone_120_min
// same task
end
handle_asynchronously :postpone_120_min, :run_at => Proc.new { 1200.minutes.from_now }
을 handle_asyn ... line으로 어떻게하는지 알아? – baash05