代码提交
This commit is contained in:
@@ -18,13 +18,13 @@ class WorkbenchGroupPushCommand extends Command
|
||||
protected function configure()
|
||||
{
|
||||
$this->setName('workbench:groupPush')
|
||||
->setDescription('工作台群组同步任务队列')
|
||||
->setDescription('工作台群发同步任务队列')
|
||||
->addOption('jobId', null, Option::VALUE_OPTIONAL, '任务ID,用于区分不同实例', date('YmdHis') . rand(1000, 9999));
|
||||
}
|
||||
|
||||
protected function execute(Input $input, Output $output)
|
||||
{
|
||||
$output->writeln('开始处理工作台群组同步任务...');
|
||||
$output->writeln('开始处理工作台群发同步任务...');
|
||||
|
||||
try {
|
||||
// 获取任务ID
|
||||
@@ -48,10 +48,10 @@ class WorkbenchGroupPushCommand extends Command
|
||||
// 将任务添加到队列
|
||||
$this->addToQueue($jobId, $queueLockKey);
|
||||
|
||||
$output->writeln('工作台群组同步任务已添加到队列');
|
||||
$output->writeln('工作台群发同步任务已添加到队列');
|
||||
} catch (\Exception $e) {
|
||||
Log::error('工作台群组同步任务添加失败:' . $e->getMessage());
|
||||
$output->writeln('工作台群组同步任务添加失败:' . $e->getMessage());
|
||||
Log::error('工作台群发同步任务添加失败:' . $e->getMessage());
|
||||
$output->writeln('工作台群发同步任务添加失败:' . $e->getMessage());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user