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 error handling to composer GCF trigger sample #732

Merged
merged 4 commits into from
Sep 7, 2018
Merged

Conversation

tswast
Copy link
Contributor

@tswast tswast commented Sep 6, 2018

Addressed feedback from bug 111401746.

Please review @TrevorEdwards

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 6, 2018
};
}

test.cb.serial(`Does nothing for deleted files`, (t) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we remove serial?

const sample = getSample();
sample.mocks.bodyJson.error = expectedMsg;

sample.program.triggerDag(event, (err, message) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we switch to promises at some point? (In a separate PR, of course.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't realize we could return promises with GCF. Yeah, that'd be ideal.

@tswast tswast merged commit 058f033 into master Sep 7, 2018
@tswast tswast deleted the tswast-composer branch September 7, 2018 19:49
@TrevorEdwards
Copy link
Contributor

Thanks for making this. I think we should consider doing retry on failure in the future as well (maybe someone else can PR that?) We've had issues with execution_date timestamp collisions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants