Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cluster-rolling-restart

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cluster-rolling-restart - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

11

index.js

@@ -68,5 +68,5 @@ "use strict";

* const app = express();
*
*
* app.get("/", (req, res) => res.send(`<h1>Hi from pid ${process.pid}</h1>`));
*
*
* app.get("/reload", (req, res) => {

@@ -76,12 +76,11 @@ * res.send("performing rolling restart of cluster");

* });
*
*
* function startServer(app) {
* app.listen(8080);
* }
*
*
* cluster.startCluster(startServer, app);
* ```
*/
module.exports.startCluster = function (startService, app, waitms = 2000) {
module.exports.startCluster = function (startService, waitms = 2000) {
if (cluster.isMaster) {

@@ -88,0 +87,0 @@ // Worker stopped. If reloading, start a new one.

{
"name": "cluster-rolling-restart",
"version": "1.0.6",
"version": "1.0.7",
"author": {

@@ -5,0 +5,0 @@ "name": "Tyson Midboe",

@@ -11,6 +11,6 @@ const express = require("express");

function startServer(app) {
function startServer() {
app.listen(8080);
}
require("../index").startCluster(startServer, app);
require("../index").startCluster(startServer);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc