[web2py] Re: scheduler task is queued but not running

2014-01-08 Thread peter
I tried 'python scheduler.py -h' to get more information.

it blew up with an error no module named simplejson.

I have python2.6 after googling, I changed (in gluon/scheduler.py)

try:
from gluon.contrib.simplejson import loads, dumps
except:
from simplejson import loads, dumps

around line 84 to

try:
from gluon.contrib.simplejson import loads, dumps
except:
from json import loads, dumps

it now blows up with a different issue on 'python scheduler.py -h', however 
the scheduler now seems to work. The only other thing I changed was the 
write permission on web2py-scheduler-log.

This is the first time I have had problems with web2py and python2.6

maybe the above should be changed to 

try:
from gluon.contrib.simplejson import loads, dumps
except:
try:
from simplejson import loads, dumps
except
from json import loads, dumps


Peter


On Wednesday, 8 January 2014 10:23:11 UTC, peter wrote:

 I have a scheduler task marked as queued. I have an active working with 
 living heartbeats. They both have the same group name, the time for the 
 task to run is in the past. The task is not being executed. Does anyone 
 have any idea what might cause the problem. Web2py version 2.8.2
 Thanks
 Peter


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


[web2py] Re: scheduler task is queued but not running

2014-01-08 Thread Niphlod
are you running the scheduler from where ? it should be in the gluon folder 
along with the other files from the framework, and hence not erroring on 
import.
If you're running from a standalone file then ok, with python2.6 you should 
have simplejson installed, and we'll fix in trunk to choose json over 
simplejson. 


On Wednesday, January 8, 2014 3:56:17 PM UTC+1, peter wrote:

 I tried 'python scheduler.py -h' to get more information.

 it blew up with an error no module named simplejson.

 I have python2.6 after googling, I changed (in gluon/scheduler.py)

 try:
 from gluon.contrib.simplejson import loads, dumps
 except:
 from simplejson import loads, dumps

 around line 84 to

 try:
 from gluon.contrib.simplejson import loads, dumps
 except:
 from json import loads, dumps

 it now blows up with a different issue on 'python scheduler.py -h', 
 however the scheduler now seems to work. The only other thing I changed was 
 the write permission on web2py-scheduler-log.

 This is the first time I have had problems with web2py and python2.6

 maybe the above should be changed to 

 try:
 from gluon.contrib.simplejson import loads, dumps
 except:
 try:
 from simplejson import loads, dumps
 except
 from json import loads, dumps


 Peter


 On Wednesday, 8 January 2014 10:23:11 UTC, peter wrote:

 I have a scheduler task marked as queued. I have an active working with 
 living heartbeats. They both have the same group name, the time for the 
 task to run is in the past. The task is not being executed. Does anyone 
 have any idea what might cause the problem. Web2py version 2.8.2
 Thanks
 Peter



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


[web2py] Re: scheduler task is queued but not running

2014-01-08 Thread Niphlod
whoops. my bad. definitely it should not give errors on import. The 
scheduler needs dal, utils and Storage so the only way to run it is from 
inside the gluon folder, along with the rest of the framework.

Also, please post the contents of your scheduler_task and scheduler_worker 
tables, so we figure out why it remains queued.

On Wednesday, January 8, 2014 9:07:26 PM UTC+1, Niphlod wrote:

 are you running the scheduler from where ? it should be in the gluon 
 folder along with the other files from the framework, and hence not 
 erroring on import.
 If you're running from a standalone file then ok, with python2.6 you 
 should have simplejson installed, and we'll fix in trunk to choose json 
 over simplejson. 


 On Wednesday, January 8, 2014 3:56:17 PM UTC+1, peter wrote:

 I tried 'python scheduler.py -h' to get more information.

 it blew up with an error no module named simplejson.

 I have python2.6 after googling, I changed (in gluon/scheduler.py)

 try:
 from gluon.contrib.simplejson import loads, dumps
 except:
 from simplejson import loads, dumps

 around line 84 to

 try:
 from gluon.contrib.simplejson import loads, dumps
 except:
 from json import loads, dumps

 it now blows up with a different issue on 'python scheduler.py -h', 
 however the scheduler now seems to work. The only other thing I changed was 
 the write permission on web2py-scheduler-log.

 This is the first time I have had problems with web2py and python2.6

 maybe the above should be changed to 

 try:
 from gluon.contrib.simplejson import loads, dumps
 except:
 try:
 from simplejson import loads, dumps
 except
 from json import loads, dumps


 Peter


 On Wednesday, 8 January 2014 10:23:11 UTC, peter wrote:

 I have a scheduler task marked as queued. I have an active working with 
 living heartbeats. They both have the same group name, the time for the 
 task to run is in the past. The task is not being executed. Does anyone 
 have any idea what might cause the problem. Web2py version 2.8.2
 Thanks
 Peter



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