avoid defer in more cases so that devices do not become skipped from all jobs
This commit is contained in:
@@ -16,7 +16,7 @@ register_worker({ phase => 'check' }, sub {
|
||||
return Status->error("discover failed: no device param (need -d ?)")
|
||||
if $device->ip eq '0.0.0.0';
|
||||
|
||||
return Status->defer("discover skipped: $device is pseudo-device")
|
||||
return Status->info("discover skipped: $device is pseudo-device")
|
||||
if $device->is_pseudo;
|
||||
|
||||
# runner has already called get_device to promote $job->device
|
||||
@@ -24,7 +24,7 @@ register_worker({ phase => 'check' }, sub {
|
||||
if $device->in_storage
|
||||
and ($job->subaction eq 'with-nodes' and not $job->username);
|
||||
|
||||
return Status->defer("discover deferred: $device is not discoverable")
|
||||
return Status->info("discover skipped: $device is not discoverable")
|
||||
unless is_discoverable_now($device);
|
||||
|
||||
return Status->done('Discover is able to run.');
|
||||
|
||||
Reference in New Issue
Block a user