Run sporadic jobs in ruby