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

single email per push #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

jwu2
Copy link

@jwu2 jwu2 commented Jul 28, 2016

No description provided.

};
//console.log('commit_msg: ' + commit_msg);
email += commit_msg;
callback();
Copy link
Owner

Choose a reason for hiding this comment

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

@jwu2
If this callback() is called too early, it might prematurely terminate the lambda function. AWS doesn't guarantee immediate termination so the function might still run for a bit.

Copy link
Author

Choose a reason for hiding this comment

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

I think the callback is effective only for this commit. Not sure how it can be called too early. What is recommended way for this?

return Promise.resolve({email:email,commit:e});
};
email += commit_msg;
callback();
Copy link
Owner

Choose a reason for hiding this comment

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

@jwu2 This can be moved to the end after sending the email

Copy link
Author

Choose a reason for hiding this comment

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

I'm not sure about it, but have to test it out. The current code works well.

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.

2 participants