haha brilliant.  Thanks for the quick response.

My task only operates on the db and internally after an external matlab 
call to chug on data so i wasn't returning anything.  A simple return 1 did 
the trick.

Also I'm using your ComfortScheduler plugin that i found while searching 
the message board.  Thanks for that as well.  So far it works pretty well. 
 I'll send you a message if i run into any issues.

Thanks again,
Dean


On Wednesday, April 24, 2013 2:37:26 PM UTC-4, Niphlod wrote:
>
> it's by design.... if the function doesn't return a value, then you don't 
> need a record to store the result ^_^
> try returning something from your function and you'll see that the record 
> will remain.
>
> e.g.
> you have
> def mytask():
>     #---- do something....
>      
>
>
>
> switch it to
> def mytask():
>     #---- do something
>     return 1
>
>
>
> On Wednesday, April 24, 2013 8:15:39 PM UTC+2, DeanK wrote:
>>
>> I've been debating using the baked in scheduler and figured I'd try it 
>> out first before fighting to get celery running with web2py.  I have a task 
>> that uses Popen to run an external program, processes the result, and 
>> returns.  When I run this with the scheduler, an entry in scheduler_run is 
>> created.  From what i can tell once the task completes, the entry 
>> disappears.  The entry in scheduler_task says "COMPLETE" for the task, but 
>> I have no insight into what just happened since there isn't an entry in 
>> scheduler_run for the task!  Thoughts on what is going on or how to debug? 
>>  Thanks,
>>
>> Dean
>
>

-- 

--- 
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/groups/opt_out.


Reply via email to