added some unnecessary stuff to jobs

This commit is contained in:
2019-05-05 01:39:06 -05:00
parent 6f50b040ce
commit a0c4c619b0
4 changed files with 4 additions and 101 deletions
+2 -20
View File
@@ -42,8 +42,7 @@ class ProcessWalletTransactionJob implements ShouldQueue
{
$this->division = $pwt->division;
$this->charId = $pwt->charId;
$this->delay = 10;
$this->connection = 'database';
}
@@ -59,12 +58,6 @@ class ProcessWalletTransactionJob implements ShouldQueue
$finance->GetWalletTransaction($this->division, $this->charId);
//If the job is completed, mark down the completed job in the status table for jobs
$job = new JobStatus;
$job->job_name = $this->getName();
$job->complete = true;
$job->save();
//After the job is completed, delete the job
$this->delete();
}
@@ -76,17 +69,6 @@ class ProcessWalletTransactionJob implements ShouldQueue
* @return void
*/
public function failed($exception) {
//Save the error in the database
$job = new JobStatus;
$job->job_name = $this->getName();
$job->complete = false;
$job->save();
//Save the job error
$error = new JobError;
$error->job_id = $job->id;
$error->job_name = $this->getName();
$error->error = $exception;
$error->save();
dd($exception);
}
}