Regarding Scheduler code in, I understand you can put it in any Model file.
On Fri, 13 Nov 2020, 5:01 am Gaël Princivalle,
wrote:
> I can see if I create a new app in Webpy 2.20.4 that the db file have this:
> if configuration.get('scheduler.enabled'):
> from gluon.scheduler import Scheduler
I can see if I create a new app in Webpy 2.20.4 that the db file have this:
if configuration.get('scheduler.enabled'):
from gluon.scheduler import Scheduler
scheduler = Scheduler(db,
heartbeat=configuration.get('scheduler.heartbeat'))
In my db.py file I don't have that, the scheduler is c
Sure, here is the complete scheduler.py file:
My main DB is db, the DB with the scheduler tables is db_sc.
# -*- coding: utf-8 -*-
def e_db():
today = datetime.datetime.today()
file_name = '%s_%s_%s_%s_%s:%s.csv' % (request.application, today.day,
today.month, today.year, today.hour, toda
On Wednesday, November 11, 2020 at 11:17:21 PM UTC-8, Gaël Princivalle
wrote:
>
> Running it without nohup I can see this error. How can I debug that?
> This app was running first on Web2py 2.14.16 and now it runs on the 2.20.4
> version.
>
> ~/apps/web2py_folder2/env/bin/python ~/apps/web2py_
Running it without nohup I can see this error. How can I debug that?
This app was running first on Web2py 2.14.16 and now it runs on the 2.20.4
version.
~/apps/web2py_folder2/env/bin/python ~/apps/web2py_folder2/web2py/web2py.py
-K myapp2
Traceback (most recent call last): File "apps/web2py_fo
Ok the problem was that the python command must be the one of the env.
So this works:
nohup ~/apps/web2py_folder1/env/bin/python
~/apps/web2py_folder1/web2py/web2py.py -K myapp1 &
However I've another another web2py in another folder with another app and
it don't works:
nohup ~/apps/web2py_folde
it worked for me.
Em ter., 10 de nov. de 2020 às 09:25, Gaël Princivalle <
gaelprinciva...@gmail.com> escreveu:
>
> Hello.
>
> Did someone tried to use the scheduler on Opalstack?
>
> I was used to run this command to start a worker in Webfaction but in
> Opalstack it don't works:
> nohup python
Hello.
Did someone tried to use the scheduler on Opalstack?
I was used to run this command to start a worker in Webfaction but in
Opalstack it don't works:
nohup python web2py.py -K applicationname &
I've tried in also in the virtualenv no way.
Someone knows how I can do it?
Thanks.
--
Re
8 matches
Mail list logo