Skip to content

Conversation

@henrymollman
Copy link
Contributor

This will remove the common 'already part of AutoScalingGroup:delta-asg-dock-pool' error that happens when shiva attempts to attach a dock to an org's asg that has not been detached from the dock pool fast enough

}

throw err
if (!(new RegExp('is already part of AutoScalingGroup:' + process.env.DOCK_POOL_ASG_NAME).test(err.data.originalError.message))) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so we still need this worker to retry. if you do this then the worker will stop and not retry. Was you want to happen here is set err.level = debug
OR make a new error class called ignoreable or something and inherit form baseError

new BaseError('message', {}, {
  level: 'critical',      // the reporting level 
  fingerprint: 'mygroup'  // a grouping fingerprint 
})

https://www.npmjs.com/package/error-cat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants