- 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:
Daniel Mason 2018-07-16 09:59:58 +12:00
parent f69330d637
commit 4e87677517
10 changed files with 65 additions and 29 deletions

View file

@ -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;
}
/**