i see.. if all you need to report back is whether a task is in
progress or completed then it's easy to do with threadpool..
otherwise if you need something like a progress bar then you probably
need another way..

On May 7, 12:28 pm, Matt Billenstein <[EMAIL PROTECTED]> wrote:
> Hi Ben,
>
> I didn't look at it in great detail -- how do you handle passing status
> between the pylons threads and the worker threads?  This seems to be
> where I'm having difficulty.
>
> thx
>
> m
>
>
>
> On Mon, May 07, 2007 at 07:16:46PM -0000, ben adam wrote:
>
> > did you look into one of the suggestions posted earlier i.e.
> > threadpool ? (works for me).
>
> > ben adam
>
> > On May 7, 10:10 am, Matt Billenstein <[EMAIL PROTECTED]> wrote:
> > > Thanks Ksenia, that's probably the better way to go from what I'm
> > > learning here.
>
> > > m
>
> > > On Mon, May 07, 2007 at 12:07:16PM +0200, Ksenia Marasanova wrote:
>
> > > > Op 4-mei-2007, om 22:53 heeft Matt het volgende geschreven:
>
> > > > > Hi, I have a pylons app which I want to spawn a long-running process
> > > > > from.  While this process is running (might be an hour or so), I want
> > > > > the page that kicked off this process to just display status (maybe
> > > > > referesh ever 30 seconds or so)...  Does anyone have some pointers on
> > > > > how this should be done or what packages I should be looking into?
>
> > > > Just wanted to point to a possible alternative way: I usually save
> > > > jobs like this into the database. The cron job checks every X minutes
> > > > for a jobs and runs it if needed, changing status to "X% completed".
> > > > It's pretty easy than to display a progress bar or other status
> > > > notifications in the application.
>
> > > > Ksenia.
>
> > > --
> > > Matt Billenstein
> > > [EMAIL PROTECTED]://www.vazor.com/
>
> --
> Matt Billenstein
> [EMAIL PROTECTED]://www.vazor.com/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to