POEx::WorkerPool::Role::WorkerPool::Worker::Guts - A role that provides common semantics for Worker guts
version 1.101610
(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
(JobStatus $status) is Event
send_messge communicates with the parent process each JobStatus it receives.
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
(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()
(Str $signal, HashRef $stuff) is Event
die_signal is our signal handler if something unexpected happens.
Nicholas R. Perez <nperez@cpan.org>
This software is copyright (c) 2010 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.
To install POEx::WorkerPool, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POEx::WorkerPool
CPAN shell
perl -MCPAN -e shell install POEx::WorkerPool
For more information on module installation, please visit the detailed CPAN module installation guide.