Commit 0af4855d authored by Leo Gordon's avatar Leo Gordon
Browse files

those "return" statements would have never worked anyway, so I removed them

parent 112c960c
......@@ -516,12 +516,10 @@ sub grab_jobs_for_worker {
sub reclaim_job_for_worker {
my $self = shift;
my $worker = shift or return;
my $job = shift or return;
my ($self, $worker, $job) = @_;
my $worker_id = $worker->dbID();
my $job_id = $job->dbID;
my $worker_id = $worker->dbID();
my $job_id = $job->dbID;
my $sql = "UPDATE job SET status='CLAIMED', worker_id=? WHERE job_id=? AND status='READY'";
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment