|
|
@ -233,7 +233,7 @@ async function fireStaticHook(hook, hookList, params) {
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
// eslint-disable-next-line
|
|
|
|
// eslint-disable-next-line
|
|
|
|
await timeout(hookFn(params), 5000, 'timeout');
|
|
|
|
await timeout(hookFn(params), 10000, 'timeout');
|
|
|
|
} catch (err) {
|
|
|
|
} catch (err) {
|
|
|
|
if (err && err.message === 'timeout') {
|
|
|
|
if (err && err.message === 'timeout') {
|
|
|
|
winston.warn(`[plugins] Callback timed out, hook '${hook}' in plugin '${hookObj.id}'`);
|
|
|
|
winston.warn(`[plugins] Callback timed out, hook '${hook}' in plugin '${hookObj.id}'`);
|
|
|
|