On Aug 8, 9:07 pm, Andrew <awillima...@gmail.com> wrote:
> I don't know anything about Celery, but I am interested in scheduling
> functionality for web2py.  When you mention it doesn't have
> dependencies, I assume you mean the code itself.
>
> One of my next tasks was to look at open source schedulers,
> particularly the ability to do Job/tasks dependencies, in that a
> "start" job is kicked off by the cron, that then initiates a stream of
> work with multiple jobs, sometimes parallel, sometiems serial.   Is
> this possible ?

Yes. Basically that is what it is for.
You create a record task_scheduled which tells web2py which function
you want to run, its arguments in json, and when it should runs (once,
twice, 1000 times, starting now, starting later, every day, etc.) and
worker nodes will pick up the tasks when scheduled and do it. Right
now it uses admin as a web interface and it works fine but we could
come up with something sleeker.

It is really easy to try. I will try make a vide about it.

>
> I see a database driven approach as a good thing.  It may perhaps be a
> little slower but the scheduler overhead can be such a small component
> of the overall workload.  (My target app is Data Integration).
>
> Would love to know more and to give it a try.
>
> thanks
> Andrew
>
> On Aug 9, 12:12 pm, Massimo Di Pierro <massimo.dipie...@gmail.com>
> wrote:
>
>
>
>
>
>
>
> > All you need is to follow the example and run the worker task (the
> > background task).
>
> > Whatever web server you use, your web2py apps will be able to queue
> > and schedule tasks using admin.
>
> > BTW... download it again as I added some stuff.
>
> > On Aug 8, 5:46 pm, David J <da...@styleflare.com> wrote:
>
> > > How do use this from uwsgi? Currently I am launching the web2py app using
> > > the web2py uswgi handler
> > > On Aug 8, 2011 6:35 PM, "Massimo Di Pierro" <massimo.dipie...@gmail.com>
> > > wrote:
>
> > > > for now just set an insame large value for repeats. We could agree to
> > > > use -1.
>
> > > > On Aug 8, 12:12 pm, Marin Pranjic <marin.pran...@gmail.com> wrote:
> > > >> It looks good.
> > > >> How to add a task which will repeat infinite times?
> > > >> What are Start time and Stop time used for? Just to clarify...
>
> > > >> On Mon, Aug 8, 2011 at 4:28 PM, Massimo Di Pierro
>
> > > >> <massimo.dipie...@gmail.com> wrote:
>
> > > >> > Please let me know what you think.
>
> > > >> > Massimo- Hide quoted text -
>
> > - Show quoted text -

Reply via email to