single DB poll for new jobs both high and normal priority

This commit is contained in:
Oliver Gorwits
2017-11-24 06:31:34 +00:00
parent 3db242cbe8
commit de594c647f
6 changed files with 92 additions and 58 deletions

View File

@@ -9,16 +9,15 @@ Module::Load::load
use base 'Exporter';
our @EXPORT = ();
our @EXPORT_OK = qw/
jq_warm_thrusters
jq_getsome
jq_getsomep
jq_locked
jq_queued
jq_warm_thrusters
jq_log
jq_userlog
jq_lock
jq_defer
jq_complete
jq_log
jq_userlog
jq_insert
jq_delete
/;
@@ -43,10 +42,6 @@ Returns a list of randomly selected queued jobs. Default is to return one job,
unless C<$num> is provided. Jobs are returned as objects which implement the
Netdisco job instance interface (see below).
=head2 jq_getsomep( $num? )
Same as C<jq_getsome> but for high priority jobs.
=head2 jq_locked()
Returns the list of jobs currently booked out to this processing node (denoted