On Thursday, June 9, 2016 at 11:32:51 AM UTC-7, Pierre wrote:
>
> [...]
> and pythonanywhere longRunningTasks script at:
>
> https://help.pythonanywhere.com/pages/LongRunningTasks/
>
> this page tells the programmer to make sure his code is *resilient to 
> being terminated unexpectedly*: what is that mean ? For instance can this 
> code extracted from the w2p book be considered resilient :
>
>
At first pass, I'd think that you'd want to make sure that when a process 
gets zapped, you want to be careful which data you lose, and that probably 
has to do with how you handle locks and tmp files.

I won't comment on the task queuing because I use the scheduler, which 
turns out to be quite easy.  In my case, the message is generated in as 
well as mailed by  the scheduled task.  Note that Massimo has a more recent 
example in his "new free toys" post of Jan 26
<URL:https://groups.google.com/d/msg/web2py/CWUs9UuU5VQ/zn-88rfgDQAJ>

/dps

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to