mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-22 07:51:17 +01:00
Add timeout again
otherwise you'll get a little bit of spam when workers die instantly
This commit is contained in:
parent
a05e82cb5e
commit
25abbb4f02
@ -12,7 +12,7 @@ if (cluster.isMaster) {
|
|||||||
|
|
||||||
cluster.on("exit", function (worker, code, signal) {
|
cluster.on("exit", function (worker, code, signal) {
|
||||||
logging.error("Worker died. Rebooting a new one.");
|
logging.error("Worker died. Rebooting a new one.");
|
||||||
cluster.fork();
|
setTimeout(cluster.fork, 100);
|
||||||
});
|
});
|
||||||
|
|
||||||
setInterval(cleaner.run, config.cleaning_interval * 1000);
|
setInterval(cleaner.run, config.cleaning_interval * 1000);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user