Skip to content

Commit

Permalink
Update job timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
leepeuker committed Dec 21, 2022
1 parent 5af53cf commit b4f5ed2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/JobQueue/JobQueueRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,13 @@ public function purgeProcessedJobs() : void

public function updateJobStatus(int $id, JobStatus $status) : void
{
$this->dbConnection->update('job_queue', ['job_status' => (string)$status], ['id' => $id]);
$this->dbConnection->update(
'job_queue',
[
'job_status' => (string)$status,
'updated_at' => (string)DateTime::create(),
],
['id' => $id],
);
}
}

0 comments on commit b4f5ed2

Please sign in to comment.