mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改系统任务显示
This commit is contained in:
parent
42c0cc47ee
commit
263d317211
@ -46,6 +46,7 @@ class Queue extends Controller
|
|||||||
try {
|
try {
|
||||||
$this->command = ProcessService::instance()->think('xtask:start');
|
$this->command = ProcessService::instance()->think('xtask:start');
|
||||||
$this->message = $this->app->console->call('xtask:state')->fetch();
|
$this->message = $this->app->console->call('xtask:state')->fetch();
|
||||||
|
$this->listen = preg_match('/主进程\d+/', $this->message, $attr);
|
||||||
} catch (\Exception $exception) {
|
} catch (\Exception $exception) {
|
||||||
$this->message = $exception->getMessage();
|
$this->message = $exception->getMessage();
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,11 @@
|
|||||||
<span class="layui-badge layui-bg-blue notselect margin-left-5">popen</span>
|
<span class="layui-badge layui-bg-blue notselect margin-left-5">popen</span>
|
||||||
<span class="layui-badge layui-bg-blue notselect margin-left-5">shell_exe</span>
|
<span class="layui-badge layui-bg-blue notselect margin-left-5">shell_exe</span>
|
||||||
<h4 class="color-desc margin-top-10">当前消息队列守护进程运行状态</h4>
|
<h4 class="color-desc margin-top-10">当前消息队列守护进程运行状态</h4>
|
||||||
<span class="layui-badge layui-bg-blue">{$message|raw|default='--'}</span>
|
{if $listen}
|
||||||
|
<span class="layui-badge layui-bg-green">{$message|raw|default='--'}</span>
|
||||||
|
{else}
|
||||||
|
<span class="layui-badge layui-bg-red">{$message|raw|default='--'}</span>
|
||||||
|
{/if}
|
||||||
<h4 class="color-desc margin-top-10">配置定时任务来检查并启动进程(建议每分钟执行)</h4>
|
<h4 class="color-desc margin-top-10">配置定时任务来检查并启动进程(建议每分钟执行)</h4>
|
||||||
<span class="layui-badge layui-bg-blue">{$command|default='--'}</span>
|
<span class="layui-badge layui-bg-blue">{$command|default='--'}</span>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user