|
List Info
Thread: Re: C::P::Scheduler
|
|
| Re: C::P::Scheduler |

|
2007-08-24 10:03:08 |
|
Thank you for your response. Yes, /email/checkemail is a private action, and I have called a Local action /email/runcheckemail which forward to /email/checkemail after 1 hour. It runs one time, and create a Schedule.task file, and then nothing happens after that. I don't know what I need to add in order to get it running like what is said in the doc. Thank you
taulmarill xgn.de wrote: Am Do, 23.08.2007, 14:45, schrieb Will Smith: > Hi, > I'm trying to use the plugin to run a cron job by adding this to the > myapp.pm : > __PACKAGE__->schedule( > at => '0 * * * *', > event => '/email/checkemail', > auto_run => 1, > ); > > This suppose to set the process checkemail run every hour, but it does > nothing at all. I
am not sure whether I have put those line in the wrong > place, or something else I have to do. Do I need to have a Schedule.yml > file (this is only an option according to the doc)? Someone has done > this, please give me some instruction. And if I want to run the process > more often, like every 15 min, how could I modify the value, if possible. > Thank you
This is from the C::P::Scheduler perldoc:
"Events will run during the first request which meets or exceeds the specified time." "The event to run at the specified time can be either a Catalyst private action path or a coderef."
Have you performed a request after the hour has passed? Is '/email/checkemail' a private action? Have you RTFM?
regards, Jürgen
_______________________________________________ List: Catalyst lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive:
http://www.mail-archive.com/catalyst lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/
Pinpoint customers who are looking for what you sell.
|
[1]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|