>
> I am still working on this with the hopes of getting it to work on my 
> local dev machine before deploying to production, but after reading the 
> forums I am very unsure of the best practice to get a simple background 
> task that wakes up every 10 (or n minutes) does some stuff (in my case see 
> if there is any email delivered to to an imap mailbox and process) then 
> goes back to sleep.  I think the oprions are cron, scheduler, or make my 
> own.  Shceduler seems like overkill for, rolling my own is way to much 
> work, leaving me with cron.   Cron seems to have some options as well that 
> I am not sure I understand form reading the book.  It seems each 
> application has its own cron file that can execute controllers in the app, 
> or you can use the system cron tab and invoke a separate instance of web2py 
> passingparameters to tell the new instance what app/controller to execute. 
>   Is this correct?  what is the best practice or reccommedned way to 
> accomplishing my scenario?
>

As mentioned above I currently have the cron job configured as part of the 
web2py app, but cannot get the cron job to start.  The additioninal info I 
found onthe forums mentioed an error that I also see on my dev machine:

Exception AttributeError: AttributeError("'_DummyThread' object has no 
attribute '_Thread__block'",) in <module 'threading' from 
'/usr/lib/python2.7/threading.pyc'> ignored

the mentions implies this has been fixed and I am not sure if it is related 
to my issue or not (I suspect so as the error message appears about every 
10 minutes in my console window).  

Anyone have any ideas or suggestions?

 

>  
>

-- 



Reply via email to