List Info

Thread: Re: Axkit2 and Apache fop?




Re: Axkit2 and Apache fop?
user name
2007-02-08 09:39:46
On 6-Feb-07, at 7:20 AM, john1firstb2b.net wrote:

> Ok, I have some lengthy processes coming up in the near
future.
> Should I wait for the job server to be written or will
I have to  
> implement the above?
>
> Assuming the latter 

Yeah :-(

If I were you I'd have some sort of job-server (mod_perl
would be my  
recommendation) that you call to entirely separately.

> What does return CONTINUE do? I've read up on
continuations. I presume
> ax2 is storing the stack or somesuch and waiting for an
interrupt  
> from danga?
>
> How does it continue from where I did a return
CONTINUE? Or do I  
> have to
> somehow program that in?

So you return YIELD from a hook and it suspends the plugin
stack (not  
the execution stack as that would require core perl support
for  
continuations). You then have to have some kind of event
fired from  
the event loop - either a timeout or a socket event or
something that  
calls $client->finish_continuation - that then picks up
at the NEXT  
registered hook/plugin. So if you want that to be within
your own  
plugin you need to register multiple hooks for the same
phase. See  
plugins/aio for examples.

Note: "return CONTINUATION" is used in the
examples but that's about  
to be deprecated in favour of "return YIELD" which
is more  
syntactically correct.

Matt.

------------------------------------------------------------
---------
To unsubscribe, e-mail: axkit-users-unsubscribeaxkit.org
For additional commands, e-mail: axkit-users-helpaxkit.org


Re: Axkit2 and Apache fop?
user name
2007-02-09 08:28:30
On 8 Feb 2007 at 10:39, Also Sprach Matt Sergeant:

> On 6-Feb-07, at 7:20 AM, john1firstb2b.net wrote:
> 
> > Ok, I have some lengthy processes coming up in the
near future.
> > Should I wait for the job server to be written or
will I have to  
> > implement the above?
> >
> > Assuming the latter 
> 
> Yeah :-(
> 
> If I were you I'd have some sort of job-server
(mod_perl would be my  
> recommendation) that you call to entirely separately.

I presume this is short term until the easy to use and
implement job server
arrives? 

John

------------------------------------------------------------
---------
To unsubscribe, e-mail: axkit-users-unsubscribeaxkit.org
For additional commands, e-mail: axkit-users-helpaxkit.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )