mirror of
https://github.com/idanoo/php-resque
synced 2025-07-16 21:11:54 +00:00
- Updated README to include supervisor configuration.
- Change logfile date format to `%Y-%m-%d %T`. - Added return types to more functions.
This commit is contained in:
parent
f69330d637
commit
4e87677517
10 changed files with 65 additions and 29 deletions
|
@ -124,14 +124,15 @@ class Resque_Job
|
|||
*
|
||||
* @param int $status Status constant from Resque_Job_Status indicating the current status of a job.
|
||||
*/
|
||||
public function updateStatus($status)
|
||||
public function updateStatus($status): bool
|
||||
{
|
||||
if (empty($this->payload['id'])) {
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
|
||||
$statusInstance = new Resque_Job_Status($this->payload['id']);
|
||||
$statusInstance->update($status);
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue