Resque::Plugin::Delay - Delay the execution of job
use Resque;
my $start_time = time + 100;
my $resque = Resque->new(redis => $redis_server, plugins => ['Delay']);
$resque->push('test-job' => +{
class => 'Hoge',
args => [+{ cat => 'nyaaaa' }, +{ dog => 'bow' }],
start_time => $start_time,
}
);
Passing epoch to the start_time attribute of payload makes it impossible to execute work until that time.
Copyright (C) meru_akimbo.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
meru_akimbo merukatoruayu0@gmail.com