[Koha-bugs] [Bug 32305] Background worker doesn't check jobs receive from rabbitmq are in 'new' state
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Oct 17 16:37:35 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32305
--- Comment #20 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
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.
More information about the Koha-bugs
mailing list