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

Correction to dispplay progression in Wowa index blade

parent fa3dbb0a
No related branches found
No related tags found
1 merge request!1Include Wowa Training
Pipeline #6112 failed
......@@ -52,7 +52,7 @@ class WowaJob implements ShouldQueue
public function handle()
{
$logg = \Log::channel('custom');
//$logger->pushHandler(new StreamHandler(__DIR__ . '/../../storage/logs/training.log', Logger::INFO));
//$logger->pushHandler(new StreamHandler(__DIR__ . '/../../storage/logs/debug.log', Logger::INFO));
$this->wowa->status = Wowa::STATE_RUNNING;
$this->wowa->start_time = time();
$this->wowa->save();
......
......@@ -16,6 +16,9 @@ class Log extends Model
if ($wowa->status == Wowa::STATE_COLLECTION) {
$log = self::where('job_id', '=', $wowa->id)
->where('training', '=', false)->orderBy('progression', 'desc')->first();
if (!is_object($log)) {
return "Computation in progress...";
}
return $log->progression;
} elseif ($wowa->status == Wowa::STATE_RUNNING) {
$log = self::where('job_id', '=', $wowa->id)
......
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