On Sunday, September 21, 2003, at 12:45 PM, Wari Wahab wrote:
> Uzo Uzo wrote:
>> I have a web application, and at the end of every day,
>> I do love to run a task and generate reports... It
>> seems that if I use TaskKit, I have to go to a page to
>> activate it. I do love my tasks to start
>> automatically everytime I start my web application
>> without me actually going to a page to start it up. I
>> have thought about using crontab to schedule it, I
>> feel that cron calling my python script in this case
>> will be simpler. Please offer me your opinions.
> I'm no webware expert, you can startup/schedule your task in your
> workdir/app/__init__.py, this will ensure that your task gets picked
> up at Appserver boot time. I've done it before as a proof of concept
> and it works nicely. Just not sure if it's the way to do things.
This is how I do it, too.
You can start and stop tasks via the application.taskManager()
methods. Documentation is sparse, but the code is pretty clear.
Randall Randall <randall@...>
"When you advocate any government action, you must first
believe that violence is the best answer to the question
at hand." -- Allen Thornton