# File lib/ruote/exp/fe_when.rb, line 191 def reschedule h.job_id = @context.storage.put_schedule( 'cron', h.fei, h.frequency, 'action' => 'reply', 'fei' => h.fei, 'workitem' => h.applied_workitem) @context.storage.delete_schedule(h.job_id) if try_persist # # if the persist failed, immediately unschedule # the just scheduled job # # this is meant to cope with cases where one worker reschedules # while another just cancelled end