set up list of jobs the backend instance should skip

This commit is contained in:
Oliver Gorwits
2017-05-22 22:52:51 +01:00
parent 3a0019296d
commit 96ed444bbb
3 changed files with 59 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ our @EXPORT_OK = qw/
jq_getsomep
jq_locked
jq_queued
jq_prime_skiplist
jq_log
jq_userlog
jq_lock
@@ -57,6 +58,12 @@ Netdisco job instance interface (see below).
Returns a list of IP addresses of devices which currently have a job of the
given C<$job_type> queued (e.g. C<discover>, C<arpnip>, etc).
=head2 jq_prime_skiplist()
Sets up a table of hints for the backend daemon manager to help avoid picking
jobs from the queue that it cannot process due to C<*_no> configuration
settings.
=head2 jq_log()
Returns a list of the most recent 50 jobs in the queue. Jobs are returned as