Skip to content
This repository was archived by the owner on Jan 4, 2023. It is now read-only.

Basic error handling in watch_topic.#12

Open
kir-titievsky wants to merge 1 commit intoGoogleCloudPlatform:masterfrom
kir-titievsky:master
Open

Basic error handling in watch_topic.#12
kir-titievsky wants to merge 1 commit intoGoogleCloudPlatform:masterfrom
kir-titievsky:master

Conversation

@kir-titievsky
Copy link

Please consider adding basic error handling to the code to avoid crashes in long-running jobs.

if (msgs != None):
self.process_messages(msgs)
else:
log.error('Skipping processing message.')
Copy link
Member

Choose a reason for hiding this comment

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

Not having any messages should not raise errors?

@jpatokal
Copy link
Member

Thanks for the PR and apologies for the slow response, I've only recently taken over this repo. Please see my comment if you're still keen to push this.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants