Atsushi Kobayashi > Jonk-0.10_02 > Jonk::Cookbook::DequeueSpecificJob

Download:
Jonk-0.10_02.tar.gz

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Source  

NAME ^

Jonk::Cookbook::DequeueSpecificJob - dequeue specific job.

USAGE ^

    #! perl
    use strict;
    use warnings;
    use DBI;
    use Jonk;
    
    my $dbh = DBI->connect('dbi:mysql:test','user','pass');
    
    my $jonk = Jonk->new($dbh, {functions => [qw/worker_key/]});
    my $job_id = $jonk->insert('worker_key','job_data_here');

    my $job = $jonk->lookup_job($job_id);
syntax highlighting: