https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32305

--- Comment #20 from Marcel de Rooy <[email protected]> ---
My solution is resolve the inconsistency between MQ and DB "mode":

MQ
my $job = Koha::BackgroundJobs->find($args->{job_id});
DB
my $jobs = Koha::BackgroundJobs->search({ status => 'new', queue => \@queues
});

We should do the same checks for MQ mode, so:
my $job = Koha::BackgroundJobs->search( { id => $args->{job_id}, status =>
'new, queue => \@queues } );

So check status new AND check queue.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to