Scheduler stopping for some reason

16 views
Skip to first unread message

António Ramos

unread,
Apr 29, 2022, 3:37:15 AMApr 29
to web...@googlegroups.com
Hello i user scheduler and it was working like a charm
this is my code in a module

                scheduler=current.scheduler
                scheduler.queue_task(self.callPager, pvars=dict(pager=11,local='xxxx'))  

i see the tasks in db.scheduler_task

but they are QUEUED and dont complete.
I see that my python process is still woking in memory
image.png

my db.scheduler_run table is empty.

this is my worker

image.png
What could it be the problem ???

regards
António

Massimiliano

unread,
Apr 29, 2022, 5:43:02 AMApr 29
to web...@googlegroups.com
Try to look at the task item in the database.
There are some infos like status, last run time, next run time, how many times has been executed etc

--
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+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/CAEM0BxNdqVXFy1v86qZrntNd3r92ofgYHbzyB4we578sBPJ0Fw%40mail.gmail.com.


--
Massimiliano

António Ramos

unread,
Apr 29, 2022, 10:59:46 AMApr 29
to py4web, web...@googlegroups.com
seeing the debug it does not detect the tasks i see in db.scheduler_task with QUEUED status

image.png

image.png

Em sex., 29 de abr. de 2022 às 13:09, António Ramos <ramst...@gmail.com> escreveu:
looking for help please . Apparently web2py google group is having less interest from you all :)

António Ramos

unread,
Apr 29, 2022, 1:27:43 PMApr 29
to py4web, web...@googlegroups.com
After recreating tables and starting scheduler in debug mode, it runs only 20 out of 34 tasks queued.
This is the log

image.png


Why did the scheduler dont see the rest of the tasks

Regards
António
Reply all
Reply to author
Forward
0 new messages