Skip to content

fix(worker): clean up orphaned Messenger webhooks - #1561

Merged
realcodesiman merged 2 commits into
mainfrom
fix/messenger-orphaned-webhooks
Oct 27, 2026
Merged

realcodesiman merged 2 commits into
mainfrom
fix/messenger-orphaned-webhooks

Conversation

@realcodesiman

@realcodesiman realcodesiman commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Inbound webhooks for any missing integration complete silently.
  • Channels with a Meta cleanup strategy (Messenger, Instagram) get a throttled unsubscribe; others are skipped.

Changes

  • Update worker integration job context to skip and clean up orphaned inbound integrations.
  • Add Redis-backed cleanup throttling in orphaned integration cleanup service. The throttle key is set before the unsubscribe, so a failed unsubscribe is retried at most once per hour per identifier.
  • Cover missing integrations across supported and unsupported channels, plus cleanup failure and throttle behavior.

Test plan

  • pnpm lint
  • pnpm --filter worker check-types
  • manual verification

@github-actions github-actions Bot added the bug Something isn't working as expected label Oct 27, 2026
@realcodesiman
realcodesiman merged commit 3840400 into main Oct 27, 2026
4 checks passed
@realcodesiman
realcodesiman deleted the fix/messenger-orphaned-webhooks branch October 27, 2026 05:54
hello-jackytruong referenced this pull request in hello-jackytruong/ChatWorkAI Nov 22, 2026
* fix(worker): clean up orphaned Messenger webhooks

* fix(worker): centralize orphaned webhook cleanup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant