The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

POEx::WorkerPool::Role::WorkerPool::Worker::Guts - A role that provides common semantics for Worker guts

VERSION

version 0.092530

METHODS

after _start is Event

_start is advised to buid the communication wheel back to the parent process and also register a signal handler for DIE so we can communicate exceptions back to the parent

init_job(DoesJob $job, WheelID $wheel) is Event

init_job is the InputEvent on the ReadWrite wheel that accepts input from the parent process. It attempts to call ->init_job on the job it receives. If that is successful it will then proceed on to send a return message of PXWP_JOB_START and yield to process_job()

process_job(DoesJob $job) is Event

process_job takes the initialized job and calls ->execute_step on the job. If there is more than one step, another process_job will be queued up via POE with the same job as the argument. Each step along the way returns a JobStatus which is then sent on to send_message which communicates with the parent process

send_message(JobStatus $status) is Event

send_messge communicates with the parent process each JobStatus it receives.

die_signal(Str $signal, HashRef $stuff) is Event

die_signal is our signal handler if something unexpected happens.

AUTHOR

  Nicholas Perez <nperez@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2009 by Infinity Interactive.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.