|
@@ 226-234 (lines=9) @@
|
| 223 |
|
$this->execute(); |
| 224 |
|
} |
| 225 |
|
|
| 226 |
|
protected function markComplete() |
| 227 |
|
{ |
| 228 |
|
$this->job->setStatus(JobQueue::STATUS_COMPLETE); |
| 229 |
|
$this->job->setError(null); |
| 230 |
|
$this->job->setAcknowledged(null); |
| 231 |
|
$this->job->save(); |
| 232 |
|
|
| 233 |
|
Logger::backgroundJobComplete($this->getDatabase(), $this->getJob()); |
| 234 |
|
} |
| 235 |
|
|
| 236 |
|
protected function markCancelled($reason = null) |
| 237 |
|
{ |
|
@@ 236-244 (lines=9) @@
|
| 233 |
|
Logger::backgroundJobComplete($this->getDatabase(), $this->getJob()); |
| 234 |
|
} |
| 235 |
|
|
| 236 |
|
protected function markCancelled($reason = null) |
| 237 |
|
{ |
| 238 |
|
$this->job->setStatus(JobQueue::STATUS_CANCELLED); |
| 239 |
|
$this->job->setError($reason); |
| 240 |
|
$this->job->setAcknowledged(null); |
| 241 |
|
$this->job->save(); |
| 242 |
|
|
| 243 |
|
Logger::backgroundJobIssue($this->getDatabase(), $this->getJob()); |
| 244 |
|
} |
| 245 |
|
|
| 246 |
|
protected function markFailed($reason = null) |
| 247 |
|
{ |
|
@@ 246-254 (lines=9) @@
|
| 243 |
|
Logger::backgroundJobIssue($this->getDatabase(), $this->getJob()); |
| 244 |
|
} |
| 245 |
|
|
| 246 |
|
protected function markFailed($reason = null) |
| 247 |
|
{ |
| 248 |
|
$this->job->setStatus(JobQueue::STATUS_FAILED); |
| 249 |
|
$this->job->setError($reason); |
| 250 |
|
$this->job->setAcknowledged(0); |
| 251 |
|
$this->job->save(); |
| 252 |
|
|
| 253 |
|
Logger::backgroundJobIssue($this->getDatabase(), $this->getJob()); |
| 254 |
|
} |
| 255 |
|
|
| 256 |
|
/** |
| 257 |
|
* @return User |