sub host_concurrency { $_[0]->config->{host_concurrency} }
+sub watchdog_timeout { $_[0]->config->{watchdog_timeout} }
+
my $_load_host_file = sub {
my ($self, $path) = @_;
my $full_path = join '/', dirname($self->config_file), $path;
has introspectors => (is => 'ro', required => 1);
has stderr_fh => ( is => 'ro' );
-has watchdog_timeout => ( is => 'ro', default => sub { 300 } );
+has watchdog_timeout => ( is => 'ro' );
sub gather_all {
my ($self) = @_;
my ($user, $host, $sudo_user) = @arg{qw( user host sudo_user )};
my $sudo = defined($sudo_user) ? sprintf('%s@', $sudo_user) : undef;
my $args = { introspectors => $arg{introspectors} };
- my %connection_args = ( stderr => $arg{stderr_fh} );
+
+ Dlog_trace { "Arguments for gatherer object: $_" } $args;
+
+ my %connection_args = ( stderr => $arg{stderr_fh}, watchdog_timeout => $arg{watchdog_timeout} );
if (defined $host) {
my $remote = join '@', grep defined, $user, $host;
my $conn = Object::Remote::Connection->conn_from_spec($remote, %connection_args);
my $gatherer = System::Introspector::Gatherer->new_from_spec(
user => $self->user,
stderr_fh => $stderr_fh,
+ watchdog_timeout => $self->config->watchdog_timeout,
host => $arg{host},
sudo_user => $arg{sudo} && $self->sudo_user,
introspectors => $arg{introspectors},