set up list of jobs the backend instance should skip
This commit is contained in:
@@ -8,7 +8,8 @@ use App::Netdisco::Util::Backend;
|
||||
use Role::Tiny;
|
||||
use namespace::clean;
|
||||
|
||||
use App::Netdisco::JobQueue qw/jq_locked jq_getsome jq_getsomep jq_lock/;
|
||||
use App::Netdisco::JobQueue
|
||||
qw/jq_locked jq_getsome jq_getsomep jq_lock jq_prime_skiplist/;
|
||||
|
||||
sub worker_begin {
|
||||
my $self = shift;
|
||||
@@ -19,6 +20,9 @@ sub worker_begin {
|
||||
|
||||
debug "entering Manager ($wid) worker_begin()";
|
||||
|
||||
# rebuild device skip hints
|
||||
jq_prime_skiplist;
|
||||
|
||||
# requeue jobs locally
|
||||
debug "mgr ($wid): searching for jobs booked to this processing node";
|
||||
my @jobs = jq_locked;
|
||||
|
||||
Reference in New Issue
Block a user