Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new options and SIGINT handling #1

Merged
merged 9 commits into from
Jan 3, 2018
Merged

Add new options and SIGINT handling #1

merged 9 commits into from
Jan 3, 2018

Conversation

johvet
Copy link

@johvet johvet commented Dec 30, 2017

No description provided.

index.js Outdated
let params = {
clusterArn: options.clusterArn,
taskId: taskId,
reason: 'User cancelled tasked'
Copy link
Member

Choose a reason for hiding this comment

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

I think this should be User requested interrupt

},

stop: function(options, cb) {
let ecs = new AWS.ECS();
Copy link
Member

Choose a reason for hiding this comment

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

This could be a const


stop: function(options, cb) {
let ecs = new AWS.ECS();
let params = {
Copy link
Member

Choose a reason for hiding this comment

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

This could be a const

index.js Outdated
process.on('SIGINT', () => {
console.log(`Received SIGINT. Asking ECS to stop task: ${taskId}`);

let params = {
Copy link
Member

Choose a reason for hiding this comment

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

This could be a const

index.js Outdated
@@ -27,7 +27,7 @@ module.exports = function(options, cb) {

async.waterfall([
function(next) {
var ecs = new AWS.ECS();
let ecs = new AWS.ECS();
Copy link
Member

Choose a reason for hiding this comment

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

This could be a const.

@johvet johvet merged commit e4d1b7c into master Jan 3, 2018
@johvet johvet deleted the johvet/first-pass branch January 3, 2018 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants