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
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/
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
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
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
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
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 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
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
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
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
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://
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
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.
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
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
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
17 matches
Mail list logo