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>
To install Resque::Plugin::Delay, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Resque::Plugin::Delay
CPAN shell
perl -MCPAN -e shell install Resque::Plugin::Delay
For more information on module installation, please visit the detailed CPAN module installation guide.