mirror of
https://github.com/kuaifan/dootask.git
synced 2026-10-29 22:10:42 +00:00
fix(manticore): 兜底同步命令输出重定向到 /dev/null,避免 shell_exec 阻塞 task worker 导致串行执行
This commit is contained in:
parent
c0b1321479
commit
2153879e09
@ -248,14 +248,14 @@ class ManticoreSyncTask extends AbstractTask
|
||||
private function runIncrementalSync(): void
|
||||
{
|
||||
// 启动各类型的增量同步命令
|
||||
@shell_exec("php /var/www/artisan manticore:sync-files --i 2>&1 &");
|
||||
@shell_exec("php /var/www/artisan manticore:sync-users --i 2>&1 &");
|
||||
@shell_exec("php /var/www/artisan manticore:sync-projects --i 2>&1 &");
|
||||
@shell_exec("php /var/www/artisan manticore:sync-tasks --i 2>&1 &");
|
||||
@shell_exec("php /var/www/artisan manticore:sync-msgs --i 2>&1 &");
|
||||
@shell_exec("php /var/www/artisan manticore:sync-files --i > /dev/null 2>&1 &");
|
||||
@shell_exec("php /var/www/artisan manticore:sync-users --i > /dev/null 2>&1 &");
|
||||
@shell_exec("php /var/www/artisan manticore:sync-projects --i > /dev/null 2>&1 &");
|
||||
@shell_exec("php /var/www/artisan manticore:sync-tasks --i > /dev/null 2>&1 &");
|
||||
@shell_exec("php /var/www/artisan manticore:sync-msgs --i > /dev/null 2>&1 &");
|
||||
|
||||
// 启动失败重试命令
|
||||
@shell_exec("php /var/www/artisan manticore:retry-failures 2>&1 &");
|
||||
@shell_exec("php /var/www/artisan manticore:retry-failures > /dev/null 2>&1 &");
|
||||
}
|
||||
|
||||
public function end()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user