File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change 66
77use Imi \Aop \Annotation \Inject ;
88use Imi \App ;
9+ use Imi \Log \Log ;
910use Imi \Queue \Service \QueueService ;
1011use Imi \Swoole \Process \Annotation \Process ;
1112use Imi \Swoole \Process \BaseProcess ;
@@ -84,6 +85,14 @@ public function run(\Swoole\Process $process): void
8485 });
8586 $ processPool ->start ();
8687 }
88+ if (!isset ($ name ))
89+ {
90+ Log::warning ('@app.beans.imiQueue.list is empty ' );
91+ while (true )
92+ {
93+ sleep (86400 );
94+ }
95+ }
8796 Event::wait ();
8897 }
8998 }
Original file line number Diff line number Diff line change 55namespace Imi \Queue \Process ;
66
77use Imi \Aop \Annotation \Inject ;
8+ use Imi \Log \Log ;
89use Imi \Queue \Service \QueueService ;
910use Imi \Workerman \Process \Annotation \Process ;
1011use Imi \Workerman \Process \BaseProcess ;
@@ -48,6 +49,14 @@ public function run(Worker $worker): void
4849 }
4950
5051 WorkermanServerWorker::runAll ();
52+ if (!isset ($ name ))
53+ {
54+ Log::warning ('@app.beans.imiQueue.list is empty ' );
55+ while (true )
56+ {
57+ sleep (86400 );
58+ }
59+ }
5160 }
5261 }
5362}
You can’t perform that action at this time.
0 commit comments