Skip to content
Snippets Groups Projects
Verified Commit ba0af493 authored by Dillenn Terumalai's avatar Dillenn Terumalai :speech_balloon:
Browse files

fix: Removed std_err and std_out as it was causing issues due to file permissions

parent d4b43ba4
No related branches found
No related tags found
No related merge requests found
Pipeline #3889 passed
This diff is collapsed.
{
"/app.js": "/app.js?id=c8fd9f885eda0a006ac8301e78b50fe1",
"/app.js": "/app.js?id=cdd9fe6db22043b0530eab6925938b7b",
"/img/favicon.ico": "/img/favicon.ico?id=ddf9962d2b7fa394e573304df800cad6"
}
......@@ -36,28 +36,6 @@
</v-sheet>
</v-card-text>
</v-card>
<v-card class="mb-10" :loading="isLoading" v-if="job">
<v-card-title>
<p class="text-h6 mb-0">Stdout</p>
</v-card-title>
<v-card-text class="px-0 pb-0">
<v-sheet color="black" dark class="pa-5">
<p class="format-text text-subtitle-1 font-weight-medium">{{ job.std_out }}</p>
</v-sheet>
</v-card-text>
</v-card>
<v-card class="mb-10" :loading="isLoading" v-if="job">
<v-card-title>
<p class="text-h6 mb-0">Stderr</p>
</v-card-title>
<v-card-text class="px-0 pb-0">
<v-sheet color="black" dark class="pa-5">
<p class="format-text text-subtitle-1 font-weight-medium">{{ job.std_err }}</p>
</v-sheet>
</v-card-text>
</v-card>
</div>
</template>
......
......@@ -46,28 +46,6 @@
</v-sheet>
</v-card-text>
</v-card>
<v-card class="mb-10" :loading="isLoading" v-if="job">
<v-card-title>
<p class="text-h6 mb-0">Stdout</p>
</v-card-title>
<v-card-text class="px-0 pb-0">
<v-sheet color="black" dark class="pa-5">
<p class="format-text text-subtitle-1 font-weight-medium">{{ job.std_out }}</p>
</v-sheet>
</v-card-text>
</v-card>
<v-card class="mb-10" :loading="isLoading" v-if="job">
<v-card-title>
<p class="text-h6 mb-0">Stderr</p>
</v-card-title>
<v-card-text class="px-0 pb-0">
<v-sheet color="black" dark class="pa-5">
<p class="format-text text-subtitle-1 font-weight-medium">{{ job.std_err }}</p>
</v-sheet>
</v-card-text>
</v-card>
</div>
</template>
......
......@@ -146,11 +146,7 @@ class DatabaseJobRepository implements JobRepository
*/
public function find(JobModel $clusterJob): JobModel
{
return $clusterJob->setAppends([
'runtime',
'std_out',
'std_err',
]);
return $clusterJob;
}
/**
......
......@@ -128,32 +128,6 @@ class JobModel extends Model
return null;
}
/**
* Get the std_out content.
*
* @return string|null
*/
public function getStdOutAttribute()
{
if (file_exists($this->std_out_path)) {
return file_get_contents($this->std_out_path);
}
return null;
}
/**
* Get the std_err content.
*
* @return string|null
*/
public function getStdErrAttribute()
{
if (file_exists($this->std_err_path)) {
return file_get_contents($this->std_err_path);
}
return null;
}
protected static function newFactory()
{
return JobModelFactory::new();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment