# File lib/ruote/exp/fe_once.rb, line 186 def reschedule h.schedule_id = @context.storage.put_schedule( 'cron', h.fei, h.frequency, 'action' => 'reply', 'fei' => h.fei, 'workitem' => h.applied_workitem) @context.storage.delete_schedule(h.schedule_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