Update ingest logs worker start seconds key
This commit is contained in:
parent
05fde65cd3
commit
818255cd04
2
Procfile
2
Procfile
|
@ -1,2 +1,2 @@
|
||||||
web: node server.js
|
web: node server.js
|
||||||
log: node workers/ingest-logs.js
|
ingest_logs: node workers/ingest-logs.js
|
||||||
|
|
|
@ -209,7 +209,7 @@ const ingestLogs = (zone, startSeconds, endSeconds) =>
|
||||||
})
|
})
|
||||||
|
|
||||||
const startZone = (zone) => {
|
const startZone = (zone) => {
|
||||||
const startSecondsKey = `logsWorker-nextStartSeconds-${zone.name.replace('.', '-')}`
|
const startSecondsKey = `ingestLogsWorker-nextStartSeconds-${zone.name.replace('.', '-')}`
|
||||||
|
|
||||||
const takeATurn = () => {
|
const takeATurn = () => {
|
||||||
db.get(startSecondsKey, (error, value) => {
|
db.get(startSecondsKey, (error, value) => {
|
||||||
|
|
Loading…
Reference in New Issue