AnyEvent-DateTime-Cron

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
  for details on writing a proper quartz cron expression.
 
add()
      $cron->add(
          '* * * * *',                                     sub {...},
          '* * * * *', name   => 'job_name', single => 1,  sub {...},
          ...
      );
 
  Use "add()" to add new cron jobs. It accepts a list of crontab entries,
  optional paremeters and callbacks.
 
  The "name" parameter is useful for debugging, otherwise the
  auto-assigned "ID" is used instead.
 
  The "single" parameter, if "true", will only allow a single instance of
  a job to run at any one time.
 
  New jobs can be added before running, or while running.
 
  See "CALLBACKS" for more.

lib/AnyEvent/DateTime/Cron.pm  view on Meta::CPAN

281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
=head2 add()
 
    $cron->add(
        '* * * * *',                                     sub {...},
        '* * * * *', name   => 'job_name', single => 1,  sub {...},
        ...
    );
 
Use C<add()> to add new cron jobs.  It accepts a list of crontab entries,
optional paremeters and callbacks.
 
The C<name> parameter is useful for debugging, otherwise the auto-assigned
C<ID> is used instead.
 
The C<single> parameter, if C<true>, will only allow a single instance of
a job to run at any one time.
 
New jobs can be added before running, or while running.
 
See L</"CALLBACKS"> for more.



( run in 0.314 second using v1.01-cache-2.11-cpan-454fe037f31 )