代码提交

This commit is contained in:
wong
2025-08-07 11:56:04 +08:00
parent f592784c11
commit b33231b3b4
7 changed files with 462 additions and 7 deletions

View File

@@ -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;
}