AnyEvent-DateTime-Cron
view release on metacpan or search on metacpan
585960616263646566676869707172737475767778
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
281282283284285286287288289290291292293294295296297298299300301=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 )