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

feeds/scheduler/feed_group.go: Handle per package errs when publishing #132

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

tom--pollard
Copy link
Contributor

@tom--pollard tom--pollard commented Jun 11, 2021

publishPackages() no longer immediately returns if a single package
fails to be marshalled or sent to the publisher. Instead the error
is logged and a generic errPub is returned, inline with poll().

This is for #101, however it could be extended in the future with retry logic, or even some form of event.

@tom--pollard tom--pollard force-pushed the handle_per_pub_err branch 2 times, most recently from 4a9f736 to 7fdb48e Compare June 11, 2021 15:26
@tom--pollard tom--pollard requested a review from Qinusty June 11, 2021 15:30
Copy link
Contributor

@Qinusty Qinusty left a comment

Choose a reason for hiding this comment

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

Some thoughts but nothing major, looks good to me!

feeds/scheduler/feed_group.go Outdated Show resolved Hide resolved
feeds/scheduler/feed_group.go Outdated Show resolved Hide resolved
@tom--pollard tom--pollard force-pushed the handle_per_pub_err branch 2 times, most recently from 6c8e8f3 to 5e3ed46 Compare June 15, 2021 14:25
Copy link
Contributor

@Qinusty Qinusty left a comment

Choose a reason for hiding this comment

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

LGTM!

publishPackages() no longer immediately returns if a single package
fails to be marshalled or sent to the publisher. Instead the error
is logged and a generic `errPub` is returned, inline with poll().
@tom--pollard tom--pollard merged commit 98b20fa into ossf:main Jun 16, 2021
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