Hey guys, I am trying to start a task from a task and I found this
post:
https://groups.google.com/forum/?fromgroups#!searchin/web2py/queue$20tasks|sort:relevance/web2py/mpVWhW5QVxw/yufdedADDbYJ
However I still have one issue where I get: AttributeError: type object
'datetime.datetime' has no attribute 'datetime'
For testing purposes I'm just doing:
Controller:
scheduler.queue_task(task_add, pvars=dict(a=1,b=2), repeats=1)
Scheduler:
def task_child(a,b):
return a+b
def task_add(a,b):
scheduler.queue_task(task_child, pvars=dict(a=a, b=b), repeats=1)
Does anyone know what might be the issue? Or how can I do something like
this?
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.