mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
重测整题功能
This commit is contained in:
1 parent
7a4d5209b8
commit
76b001305d
6 files changed
+31
-4
No files matched your search
@@ -207,13 +207,13 @@ export async function load() {
|
||||
const cnt = await entry({ entry: 'master' });
|
||||
logger.info('Master started');
|
||||
cluster.on('exit', (worker, code, signal) => {
|
||||
logger.info(`Worker ${worker.process.pid} ${worker.id} exit: ${code} ${signal}`);
|
||||
logger.warn(`Worker ${worker.process.pid} ${worker.id} exit: ${code} ${signal}`);
|
||||
});
|
||||
cluster.on('disconnect', (worker) => {
|
||||
logger.info(`Worker ${worker.process.pid} ${worker.id} disconnected`);
|
||||
});
|
||||
cluster.on('listening', (worker, address) => {
|
||||
logger.info(`Worker ${worker.process.pid} ${worker.id} listening at `, address);
|
||||
logger.success(`Worker ${worker.process.pid} ${worker.id} listening at `, address);
|
||||
});
|
||||
cluster.on('online', (worker) => {
|
||||
logger.success(`Worker ${worker.process.pid} ${worker.id} is online`);
|
||||
|
||||
Reference in new issue
Block a user