[web2py] Re: web2py.scheduler.hpxyz#2791 - ERROR - we received a task that isn't there (15)

2018-02-27 Thread Pierre
I did the change at line 732 and the error continues to show up 
(immediate=True). Besides there is another problem i forgot to mention 
earlier :
the scheduler_task and scheduler_run tables are not updated properly. what 
i do is run a python script using the requests and threading module to 
perform app stress tests. every time i run this script, it's supposed to 
queue 100 new tasks and delegate work to the workers. first time i run the 
script new tasks are added to the tables as they should but not the 
second,thirdtimes. With the change you suggested script may return HTTP 
errors 500 which is something new


if you or someone else could tell me *how to start a python-rq worker 
within web2py* i'd like to give it a try, otherwise what would be the 
workaround if any?

https://groups.google.com/forum/#!msg/web2py/kAG2Y_tDoUE/ycJAdjj1hsgJ
https://groups.google.com/forum/#!msg/web2py/js0VAKK6Dlw/CJ46I-0wT0wJ

from Bruno Rocha's receipt:  this doesn't seem to work (sh file to start a 
rq worker):

cd /pathTo/web2py
sudo python web2py.py -S myapp -M -R w2p-rqworker.py


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


[web2py] Re: web2py.scheduler.hpxyz#2791 - ERROR - we received a task that isn't there (15)

2018-02-26 Thread Leonel Câmara
Can you try another thing for me.

In redis_scheduler.py in line 732:

if not rtn.errors::
 self.db.commit()  ## Add this line

Restart the scheduler, and check if the problem is solved?


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


[web2py] Re: web2py.scheduler.hpxyz#2791 - ERROR - we received a task that isn't there (15)

2018-02-26 Thread Pierre
yes correct *immediate=False* and errors are gone. setting heartbeat=1 
instead of default and errors are back. I would not say lot's of workers 
since i can hardly run more than 3 workers5 workers == computer 
crash.

i will learn how to walk on eggs, it can be useful...

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


[web2py] Re: web2py.scheduler.hpxyz#2791 - ERROR - we received a task that isn't there (15)

2018-02-24 Thread Leonel Câmara
Are you using immediate=True in your queue_task, looking at the redis 
version of the scheduler's code, seems like, particularly when you have a 
lot of workers, it could cause redis to try to run the task before it is 
commited in the database. If that's the problem we should look into the 
code and try to fix it but you could as a workaround remove imediate=True.

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


[web2py] Re: web2py.scheduler.hpxyz#2791 - ERROR - we received a task that isn't there (15)

2018-02-23 Thread Pierre
it's worst than i thought:

i increased tasks volume(100) with 3 up to 5 workers and now i get lot's of 
: *we received a task that isn't ther*e errors and a couple of *dead tasks *( 
queued forever ). bad bad bad
i'll check if *python-rq* can help with this and if it can't i am done with 
'gesticulations'...

http://python-rq.org/

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