On 08/06/06, Peter Farmer <[EMAIL PROTECTED]> wrote:
Hi all,

I'm fairly new to coding with POE, and I think I've not quite grasped
the concepts correctly.

I have a script which has two sessions, the first session is what I
call a scheduler session, basically it reads the content of a txt file
and "schedules" events into the other session with

$kernel->post("worker","job_runner",$arg);

the scheduler session then runs a

$kernel->delay_set("scheduler", 10);

What I'm expecting to happen is that the worker session chugs through
the events its been posted, but after 10 seconds the scheduler session
runs again to check the content of txt file and post more events to
the worker if needed. Basically what happens is that the worker
session chugs through it entire queue and then the scheduler runs
again.

Is there a way to get what I want to happen to happen?



Thanks,

--
Peter Farmer


Hi again,

pastebins of the code:

http://poundperl.pastebin.com/767423
http://poundperl.pastebin.com/767424


Thanks,

--
Peter Farmer

Reply via email to