/resque-delay-perl

Primary LanguagePerlOtherNOASSERTION

NAME

Resque::Plugin::Delay - Delay the execution of job

SYNOPSIS

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,
    }
);

DESCRIPTION

Passing epoch to the start_time attribute of payload makes it impossible to execute work until that time.

LICENSE

Copyright (C) meru_akimbo.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

meru_akimbo merukatoruayu0@gmail.com