[web2py] Web2py Scheduler, db query is not executing.

2021-10-05 Thread Andrew
Hello, I am trying to run a database query using the web2py scheduler, but for some reason I can't get the query to commit. I've tested the function in a controller to see that it works, and I'm pretty sure the scheduler is running correctly because I have a scheduler_worker with the status of

[web2py] Web2py scheduler

2018-02-06 Thread Simona Chovancová
Hello, I'm having trouble using the scheduler. I have managed to set it up to queue tasks and successfully complete them. Although, that only works if I do not use database. If I include db in function that is tasked, I get this: Traceback (most recent call last): File "/srv/www/web2py/gluon/

[web2py] Web2py scheduler breaks connection tot he server

2017-01-02 Thread Aydin
I cann't get the scheduler run in my ubuntu or debian linux machines. Originally I had db = DAL('sqlite://storage.sqlite') which causes a weird situation where the website becomes unavailable (the browser cannot establish a connection to the server at 127.0.0.1) but when I run the same app with

[web2py] Web2py scheduler linked postgres processes consuming too much memory

2016-07-16 Thread Abhishek Ram
Hi, I am using the web2py scheduler to run some background jobs. I am starting the scheduler using systemd and once started it also spawns two postgres processes as that is my DB. Now the problem is that the postgres processes continue to consume more and more memory even when no process is run

[web2py] web2py scheduler service dead - how to prevent it?

2016-05-30 Thread Mirek Zvolský
Please help Debian Jessie, postgres, web2py-scheduler How can I prevent following crash - inactive scheduler? Or how can I be sure that the scheduler is running and restart it if needed? /etc/systemd/system/web2py-scheduler.service - [Unit] D

[web2py] web2py-scheduler

2016-03-21 Thread phoebe20016
hi i want 10 min after click on submit button , my program do a function and in that 10min my program do another functions , how can i implement it ? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.c

[web2py] web2py scheduler with huge output or return values always timeout (even if the task finishes)

2016-02-29 Thread Boris Aramis Aguilar Rodríguez
Hi, there is an issue driving me crazy with the web2py scheduler: If you return something that has a huge size then it will always timeout; even if the scheduler task correctly finishes. Let me explain with an example: def small_test(): s = 's'*1256018 another_s = s #print s #pr

[web2py] web2py Scheduler with Postgres creates "idle in transaction" connections

2015-02-18 Thread stingpan
web2py version: 2.9.12-stable Postgres server: 9.1 I have 3 databases for my application, only one is designated for Scheduler and its tables. What I noticed is that when I start scheduler (using upstart deployment and running "start web2py-scheduler" as root), all 3 databases are immediately c

[web2py] web2py scheduler error when I start the worker...

2014-10-22 Thread José Leite
Hello, I just started trying to use web2py scheduler to lauch tasks like DB updates or sending emails. I am using windows7 and web2py 2.9.11. I just added the following code to my project for a simple test: MODELS from gluon.scheduler import Scheduler from test_scheduler import Addition sched

[web2py] web2py scheduler period and repeats result not expected

2014-06-25 Thread 黄祥
hi, i tested and learned from web2py documentation about web2py scheduler but ended with result not expected for period and repeats. e.g. *models/scheduler.py* db.define_table('asdf', Field('asdf'), auth.signature) from gluon.scheduler import Scheduler def demo1(): db.asdf.inser

[web2py] web2py scheduler assigned worker

2014-04-29 Thread David Rager
I have a scheduled task with an assigned worker name of MNG-IT-M-035.local#930 - however I do not see that name in the schedule_worker table and the task did not run when scheduled. Am I correct in assuming the missing schedule worker is why the task did not run? Is there a best practice to in

[web2py] web2py scheduler

2014-02-11 Thread Jayadevan M
How can I debug a scheduler task that goes into RUNNING status and never changes to any other status? The same function, when called from web2py in shell mode, does what it is expected to do and exits normally. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://

[web2py] web2py scheduler

2014-02-02 Thread Jayadevan M
I have a file job.py under models. In that I have def send_email_invites(): I added a task that says job/send_email_invites. The task errors out saying Traceback (most recent call last): File "/var/www/web2py/gluon/scheduler.py", line 229, in executor "name '%s' not found in scheduler's e

[web2py] web2py scheduler

2014-02-02 Thread Jayadevan M
When I queue a taks using - scheduler.queue_task('demo1', pvars=dict(a=1,b=2), repeats = 0, period = 180) how do I know it has been queued? I don't see a record in scheduler_task. By theway, I don't have any worker running. -- Resources: - http://web2py.com - http://web2py.

[web2py] web2py scheduler not working

2013-10-22 Thread ranjith
Hi, I have a model file called scheduler.py which has from gluon.scheduler import Scheduler def messageTask(): mail.send(to=['ranjith2...@gmail.com'],subject='hello', message='hi there') return scheduler = Scheduler(db,tasks=dict(messageTask=messageTask)) I added an entry in scheduler_t

[web2py] Web2py scheduler timeout

2012-12-12 Thread Mike D
Hello, I am using the web2py scheduler to run a task to monitor a directory. Here's some code describing what I'm doing: def get_configured_logger(): logger = logging.getLogger("ss_server") if (len(logger.handlers) == 0): handler = logging.handlers.RotatingFileHandler("/path/t

[web2py] Web2py Scheduler

2012-02-27 Thread VIREN PATEL
Hi, I need to implement the Scheduler and Job Queues at the application level. Please suggest some good Schedulers. Also if any one has implemented the schedulers in web2py Thanks, Viren