[Koha-bugs] [Bug 30172] BackGround jobs failing due to race condition
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Feb 24 12:34:43 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30172
--- Comment #7 from Nick Clemens <nick at bywatersolutions.com> ---
There is another approach we could try.
In misc/background_jobs_worker.pl we have:
61 my $job = Koha::BackgroundJobs->find($args->{job_id});
62
63 process_job( $job, $args );
64 $conn->ack( { frame => $frame } ); # FIXME depending on success?
Perhaps:
61 my $job = Koha::BackgroundJobs->find($args->{job_id});
62 $conn->nack({frame=>$frame}) unless $job;
63 process_job( $job, $args );
64 $conn->ack( { frame => $frame } ); # FIXME depending on success?
Though could we end up in a loop? The queue should expire eventually - and we
could store soemthing in the job about retries when we send nack?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list