Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: POE, Sessons, POE::Wheel::Run and program flow

by rhesa (Vicar)
on Sep 04, 2008 at 15:19 UTC ( #709038=note: print w/replies, xml ) Need Help??


in reply to POE, Sessons, POE::Wheel::Run and program flow

As soon as the new Session with the Wheel::Run in it is fired, the session returns to the JobQueue saying it is finished. This isn't true, it should only be returning finished once the ChildClosed event is done in the Wheel::Run.
That shouldn't be happening. The job should be signaled as being finished only after calling the postback callback.

It's kinda hard to tell exactly how your program flow is without seeing the actual code. The code snippets in your previous thread don't give me enough of an idea to tell where it's going wrong. The only thing I notice is that you do not use the $postback anywhere in your worker session. Maybe that's it.

Try stuffing the $postback into the session's heap, and call it when you receive the ChildClosed event, or perhaps in the session's _end handler.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://709038]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (1)
As of 2021-10-26 00:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (90 votes). Check out past polls.

    Notices?