mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 10:13:30 +00:00
fix: horizon job checker
This commit is contained in:
1 parent
a3648901ed
commit
02400added
9 files changed
+87
-34
No files matched your search
@@ -70,6 +70,15 @@ class ApplicationDeploymentQueue extends Model
|
||||
return collect(json_decode($this->logs))->where('name', $name)->first()?->output ?? null;
|
||||
}
|
||||
|
||||
public function getHorizonJobStatus()
|
||||
{
|
||||
if (! $this->horizon_job_id) {
|
||||
return 'unknown';
|
||||
}
|
||||
|
||||
return getJobStatus($this->horizon_job_id);
|
||||
}
|
||||
|
||||
public function commitMessage()
|
||||
{
|
||||
if (empty($this->commit_message) || is_null($this->commit_message)) {
|
||||
|
||||
Reference in new issue
Block a user