mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改任务指令描述
This commit is contained in:
parent
cf480015af
commit
20c2235cb7
@ -33,7 +33,7 @@ class Listen extends Task
|
||||
*/
|
||||
protected function configure()
|
||||
{
|
||||
$this->setName('xtask:listen')->setDescription('启动异步任务监听守护主进程');
|
||||
$this->setName('xtask:listen')->setDescription('[监听]常驻异步任务循环监听主进程');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -58,7 +58,7 @@ class Listen extends Task
|
||||
Db::name('SystemQueue')->where(['id' => $item['id']])->update(['status' => '2', 'start_at' => date('Y-m-d H:i:s')]);
|
||||
$this->cmd = "{$this->bin} xtask:_work {$item['id']}";
|
||||
if ($this->checkProcess()) {
|
||||
throw new Exception("处理任务的子进程已经存在 --> [{$item['id']}] {$item['title']}");
|
||||
$output->comment("处理任务的子进程已经存在 --> [{$item['id']}] {$item['title']}");
|
||||
} else {
|
||||
$this->createProcess();
|
||||
$output->info("创建处理任务的子进程成功 --> [{$item['id']}] {$item['title']}");
|
||||
|
@ -31,7 +31,7 @@ class Query extends Task
|
||||
*/
|
||||
protected function configure()
|
||||
{
|
||||
$this->setName('xtask:query')->setDescription('查询正在执行的所有任务进程');
|
||||
$this->setName('xtask:query')->setDescription('[指令]查询正在执行的所有任务进程');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -32,7 +32,7 @@ class Start extends Task
|
||||
*/
|
||||
protected function configure()
|
||||
{
|
||||
$this->setName('xtask:start')->setDescription('创建异步任务监听守护主进程');
|
||||
$this->setName('xtask:start')->setDescription('[指令]创建异步任务守护监听主进程');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -31,7 +31,7 @@ class State extends Task
|
||||
*/
|
||||
protected function configure()
|
||||
{
|
||||
$this->setName('xtask:state')->setDescription('查看异步任务监听主进程状态');
|
||||
$this->setName('xtask:state')->setDescription('[指令]查看异步任务监听主进程状态');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -32,7 +32,7 @@ class Stop extends Task
|
||||
*/
|
||||
protected function configure()
|
||||
{
|
||||
$this->setName('xtask:stop')->setDescription('平滑停止异步任务所有的进程');
|
||||
$this->setName('xtask:stop')->setDescription('[指令]平滑停止所有的异步任务进程');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -49,7 +49,7 @@ class Work extends Task
|
||||
protected function configure()
|
||||
{
|
||||
// 执行任务配置
|
||||
$this->setName('xtask:_work')->setDescription('启动执行单个指定任务子进程');
|
||||
$this->setName('xtask:_work')->setDescription('[执行]创建执行单个指定任务的进程');
|
||||
$this->addArgument('id', Argument::OPTIONAL, '指定任务ID');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user