Skip Menu |

This queue is for tickets about the Schedule-Cron CPAN distribution.

Report information
The Basics
Id: 62846
Status: resolved
Priority: 0/
Queue: Schedule-Cron

People
Owner: Nobody in particular
Requestors: tok_apple2009 [...] hotmail.co.uk
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Cron add tasks
Hi Roland I have noticed that the Schedule::Cron sleeps until the next task. In the event of during the sleeps, any add/update to the schedules list; Schedule-Cron dosen't refreash the its list until it runs the next scheudled task. Have you got and fix to that? Many Thanks Tok
Hi Tok,

tlhackque has provided a clever addition to Cron.pm with a patch related 
to  #68533. It allows for a new option 'sleep' which takes a subroutine
which is used instead of a simple sleep. So you can implement any desired
implementation (like selecting on a file an listening for dynamic changes).

Please have a look at the end of #68533 where the patch is described. It will 
be part of 1.01, so you are free to implement you own 'sleep'.


 1.01 has been added with a 'sleep' option for providing custom sleep method. Please see also the example at 'examples/custom_sleep.pl' which demonstrates this usage and shows how to dynamically update cron entries.