Skip to content

Commit

Permalink
Clean up misc state machine (#3518)
Browse files Browse the repository at this point in the history
  • Loading branch information
theoilie authored Jul 20, 2022
1 parent bfc6505 commit 338f8eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion creator-node/src/services/stateMachineManager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const config = require('../../config')
const { logger: baseLogger } = require('../../logging')
const StateMonitoringManager = require('./stateMonitoring')
const StateReconciliationManager = require('./stateReconciliation')
const NodeToSpIdManager = require('./CNodeToSpIdMapManager')
const { RECONFIG_MODES } = require('./stateMachineConstants')
const QueueInterfacer = require('./QueueInterfacer')
const makeOnCompleteCallback = require('./makeOnCompleteCallback')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module.exports = function (
logger.info(`Job successfully completed. Parsing result: ${resultString}`)
jobResult = JSON.parse(resultString) || {}
} catch (e) {
logger.warn(`Failed to parse job result string`)
logger.error(`Failed to parse job result string`)
return
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ module.exports = {
// Max millis to run a StateReconciliationQueue job for before marking it as stalled (1 hour)
STATE_RECONCILIATION_QUEUE_MAX_JOB_RUNTIME_MS: 1000 * 60 * 60,

// Max millis to run a manual sync job for before marking it as stalled (60 seconds)
MANUAL_SYNC_QUEUE_MAX_JOB_RUNTIME_MS: 1000 * 60,

// Millis to timeout request for getting users who have a node as their primary/secondary (60 seconds)
GET_NODE_USERS_TIMEOUT_MS: 1000 * 60,

Expand Down

0 comments on commit 338f8eb

Please sign in to comment.