Skip to content

Gracefully handle failure to acknowledge a pubsub message.#5015

Merged
auto-submit[bot] merged 2 commits into
flutter:mainfrom
eyebrowsoffire:graceful_acknowledge
Apr 3, 2026
Merged

Gracefully handle failure to acknowledge a pubsub message.#5015
auto-submit[bot] merged 2 commits into
flutter:mainfrom
eyebrowsoffire:graceful_acknowledge

Conversation

@eyebrowsoffire
Copy link
Copy Markdown
Contributor

If the pubsub message has expired for whatever reason, we should catch the exception and continue with the rest of the code path.

If the pubsub message has expired for whatever reason, we should catch
the exception and continue with the rest of the code path.
@eyebrowsoffire eyebrowsoffire added the CICD Run CI/CD label Apr 3, 2026
'${Config.pubsubSubscriptionsPrefix}/$subscription',
);
} catch (e) {
log.warning(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think log.error is better when we suppress any exception

Copy link
Copy Markdown
Contributor

@ievdokdm ievdokdm left a comment

Choose a reason for hiding this comment

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

LGTM

@eyebrowsoffire eyebrowsoffire added CICD Run CI/CD autosubmit Merge PR when tree becomes green via auto submit App. and removed CICD Run CI/CD labels Apr 3, 2026
@auto-submit auto-submit Bot merged commit 569810c into flutter:main Apr 3, 2026
22 checks passed
ievdokdm pushed a commit to ievdokdm/cocoon that referenced this pull request Apr 3, 2026
)

If the pubsub message has expired for whatever reason, we should catch the exception and continue with the rest of the code path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App. CICD Run CI/CD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants