change from MCE::Queue to MCE::Shared to better handle signals

This commit is contained in:
Oliver Gorwits
2020-02-04 21:34:00 +00:00
parent 965da8638d
commit d35a29931a
4 changed files with 11 additions and 4 deletions

View File

@@ -54,7 +54,8 @@ Module::Build->new(
'MIME::Base64' => '3.13', 'MIME::Base64' => '3.13',
'Module::Load' => '0.32', 'Module::Load' => '0.32',
'Moo' => '1.001000', 'Moo' => '1.001000',
'MCE' => '1.703', 'MCE' => '1.865',
'MCE::Shared' => '1.864',
'Net::Domain' => '1.23', 'Net::Domain' => '1.23',
'Net::DNS' => '0.72', 'Net::DNS' => '0.72',
'Net::LDAP' => '0', 'Net::LDAP' => '0',

View File

@@ -1,3 +1,9 @@
2.044013 - 2020-02-04
[BUG FIXES]
* change from MCE::Queue to MCE::Shared to better handle signals
2.044012 - 2020-02-01 2.044012 - 2020-02-01
[ENHANCEMENTS] [ENHANCEMENTS]

View File

@@ -35,7 +35,7 @@ use Role::Tiny::With;
use MCE::Signal '-setpgrp'; use MCE::Signal '-setpgrp';
use MCE::Flow Sereal => 1; use MCE::Flow Sereal => 1;
use MCE::Queue; use MCE::Shared;
# set temporary MCE files' location in home directory # set temporary MCE files' location in home directory
my $home = ($ENV{NETDISCO_HOME} || $ENV{HOME}); my $home = ($ENV{NETDISCO_HOME} || $ENV{HOME});
@@ -46,7 +46,7 @@ mkdir $tmp_dir if ! -d $tmp_dir;
prctl 'nd2: master'; prctl 'nd2: master';
# shared local job queue # shared local job queue
my $queue = MCE::Queue->new; my $queue = MCE::Shared->queue();
# support a scheduler-only node # support a scheduler-only node
setting('workers')->{'no_manager'} = 1 setting('workers')->{'no_manager'} = 1

View File

@@ -4,7 +4,7 @@ use strict;
use warnings; use warnings;
use 5.010_000; use 5.010_000;
our $VERSION = '2.044012'; our $VERSION = '2.044013';
use App::Netdisco::Configuration; use App::Netdisco::Configuration;
=head1 NAME =head1 NAME