Thank you very much.

My question was not clearly formulated. The task I run for my tests is very quick (appending a time stamp to a file) so I couldn't see the record in the scheduler_run table during this short period because the record is deleted when the task terminates.

I was looking for a solution to avoid the deletion of the record in the scheduler_run table. I knew it was possible because in my initial experimenting with scheduling this is what happened.

After further research I finally found out that to preserve the record in the scheduler_run table, _the task must return a result_. It is then possible to view the result, the output of the task, at what time it was executed, etc.

Le 04/05/2015 20:59, Niphlod a écrit :
is your task returning something ? if it's not returning anything, by default the corresponding scheduler_run record is deleted.

On Monday, May 4, 2015 at 5:56:36 PM UTC+2, Christophe Meessen wrote:

    I'm using queue_task to execute a task once at a predefined time.
    The task itself calls queue_task when it finished executing itself
    to submit it self for a later execution at a predefined time. I'm
    currently testing it so I call web2p directly with the shell to
    check output.

    This all works as expected and an entry is created in the
    scheduler_task table. When the task completes its status becomes
    COMPLETE and a new task is queued and executed at the predefined
    time (approximately).

    My problem is that the table scheduler_run remains empty. So I
    can't see the output of the task. It was filled during initial
    development tests.

    Is there a way to see logs of worker processes ? I couldn't find
    any. The logs directory of web2py is empty.


--
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 <mailto:web2py+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/d/optout.

--
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