Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Commit

Permalink
⬆️ Updated dependencies and node version
Browse files Browse the repository at this point in the history
  • Loading branch information
davidahouse committed May 30, 2022
1 parent 2555a9b commit fe27177
Show file tree
Hide file tree
Showing 4 changed files with 3,550 additions and 1,067 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Dockerfile

# node image
FROM node:8
FROM node:18
# working folder
WORKDIR /var/stampede
# install app dependencies
Expand Down
10 changes: 6 additions & 4 deletions bin/stampede-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const figlet = require("figlet");
const fs = require("fs");
const { spawn } = require("child_process");
const Queue = require("bull");
const uuidv4 = require("uuid/v4");
const { v4: uuidv4 } = require("uuid");
const logFileReader = require("log-file-reader");
const winston = require("winston");
const csv = require("csv-parser");
Expand All @@ -17,7 +17,7 @@ const workingDirectory = require("../lib/workingDirectory");

require("pkginfo")(module);

const conf = require("rc")("stampede", {
const conf = require("rc-house")("stampede", {
// Required configuration
redisHost: "localhost",
redisPort: 6379,
Expand Down Expand Up @@ -53,8 +53,8 @@ const conf = require("rc")("stampede", {
logQueuePath: null,
// Heartbeat
heartbeatInterval: 15000,
cloneRetryInterval: 1 * 60 * 1000, // retry every minute must be specified in milliseconds
cloneRetryAttempts: 3 // retry 3 tiems
cloneRetryInterval: 1 * 60 * 1000, // retry every minute must be specified in milliseconds
cloneRetryAttempts: 3, // retry 3 tiems
});

// Configure winston logging
Expand All @@ -78,6 +78,8 @@ const redisConfig = {
port: conf.redisPort,
host: conf.redisHost,
password: conf.redisPassword,
maxRetriesPerRequest: null,
enableReadyCheck: false,
},
};
const workerID = uuidv4();
Expand Down
Loading

0 comments on commit fe27177

Please sign in to comment.