App-Prove-Plugin-Elasticsearch
view release on metacpan or search on metacpan
MCE::Loop::init {
max_workers => $conf->{'testd.max_workers'},
chunk_size => 1,
};
mce_loop {
#XXX Net::Rabbitmq is doing something incorrectly, requiring us to re-import every time we fork to avoid 'connection reset by peer'
my $q_f = &{\&{$queue . "::new"}}($queue);
#Ensure we have no channel overlap with single-threaded things, like the write_channel, which testd does not use
$q->{read_channel} = 10 + MCE->wid();
MCE->say("Worker "
. MCE->wid()
. " started, checking queue on channel $q->{read_channel}");
worker($conf, $worker_state, $jobspec, $q_f);
}
1 .. $conf->{'testd.max_workers'};
$0 = "testd - master: attempting to provision to different test target";
print "All workers done. Attempting to re-provision for new work...\n";
( run in 0.764 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )