Shared worker

42 views
Skip to first unread message

Gael Princivalle

unread,
Dec 29, 2016, 2:37:59 PM12/29/16
to web2py-users
Hello.

I've five applications in the same web2py installation.
For each of these applications I have a set a worker that run task in the scheduler.
These tasks run one time per day (database csv backup and sitemap).

Is there a way to use one unique worker for these 5 applications?

I would like to have less running processes on the server.

Thanks, regards.

Dave S

unread,
Dec 29, 2016, 7:02:40 PM12/29/16
to web2py-users
To reduce load?  I'd just slew that start time for each, by double the time a csv dump takes.  That's a problem if it takes hours, but then in that case you may want to have the DB engine tools handle backup instead.

/dps

Niphlod

unread,
Jan 2, 2017, 11:02:26 AM1/2/17
to web2py-users
no probl at all. the scheduler happily processes tasks from whatever app is available. it just needs to be defined in one (and , of course, you need to use a unique db for the scheduler throughout your apps)
Reply all
Reply to author
Forward
0 new messages