Skip to content
Snippets Groups Projects
Commit 487acf8b authored by a.croix's avatar a.croix
Browse files

Add a failed method in WowaJob to set Job Status in Failed

parent b97f4366
No related branches found
No related tags found
1 merge request!1Include Wowa Training
Pipeline #6128 passed
<?php
namespace App\Http\Controllers;
use App\Feedback;
use App\Jobs\ProcessAUC;
use App\Jobs\WowaJob;
use App\Log;
use App\Wowa;
......
......@@ -5,7 +5,6 @@ namespace App\Jobs;
use App\Feedback;
use App\Log;
use App\Logging\LogProcessor;
use App\Logging\LogTraining;
use App\Mark;
use App\Wowa;
use Illuminate\Bus\Queueable;
......@@ -13,8 +12,6 @@ use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use Monolog\Handler\StreamHandler;
use Monolog\Logger;
use RUCD\Training\SolutionDistance;
use RUCD\Training\Trainer;
use RUCD\Training\TrainerParameters;
......@@ -121,4 +118,10 @@ class WowaJob implements ShouldQueue
$this->wowa->save();
Log::where('job_id', $this->wowa->id)->delete();
}
public function failed()
{
$this->wowa->status = Wowa::STATE_FAILED;
$this->wowa->save();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment