multi worker actions need not return done from all workers

This commit is contained in:
Oliver Gorwits
2017-10-07 09:35:14 +01:00
parent ee38bae48a
commit 256c10bae5
13 changed files with 32 additions and 49 deletions

View File

@@ -22,12 +22,10 @@ register_worker({ stage => 'main', driver => 'snmp' }, sub {
# TODO: IPv6 subnets
my $now = 'to_timestamp('. (join '.', gettimeofday) .')';
store_subnet($_, $now) for @subnets;
debug sprintf ' [%s] arpnip - processed %s Subnet entries',
$device->ip, scalar @subnets;
return Status->done("Ended arpnip for $device");
return Status->noop(sprintf ' [%s] arpnip - processed %s Subnet entries',
$device->ip, scalar @subnets);
});
# gathers device subnets