Show
Ignore:
Timestamp:
08/27/08 19:06:34 (6 years ago)
Author:
miyagawa
Message:

POD update

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/TheSchwartz-Simple/trunk/lib/TheSchwartz/Simple.pm

    r18314 r18315  
    121121  my $dbh = DBI->connect(...); 
    122122  my $client = TheSchwartz::Simple->new([ $dbh ]); 
    123   my $job_id = $client->insert('funcname', @args); 
     123  my $job_id = $client->insert('funcname', $arg); 
     124 
     125  my $job = TheSchwartz::Simple->new; 
     126  $job->funcname("WorkerName"); 
     127  $job->arg({ foo => "bar" }); 
     128  $job->uniqkey("uniqkey"); 
     129  $job->run_after( time + 60 ); 
     130  $client->insert($job); 
    124131 
    125132=head1 DESCRIPTION