posthog icon indicating copy to clipboard operation
posthog copied to clipboard

feat: add the sqs consumer for billing updates

Open zlwaterfield opened this issue 8 months ago • 3 comments

[!IMPORTANT] 👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Changes

We've setting billing to posthog sqs queues so this is adding support to process the messages.

Other PRs

  • https://github.com/PostHog/charts/pull/4852
  • https://github.com/PostHog/billing/pull/1265
  • https://github.com/PostHog/charts/pull/4858

This PR should be merged after the charts env var one, and then this one, followed by the other charts and billing one.

Charts will spin up a worker than process these. Right now, it only supports a single message type.

The command will be

python manage.py consume_sqs --queue=billing --continuous

Does this work well for both Cloud and self-hosted?

How did you test this code?

Manually.

zlwaterfield avatar May 09 '25 20:05 zlwaterfield

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week. If you want to permanentely keep it open, use the waiting label.

posthog-bot avatar May 19 '25 07:05 posthog-bot

This PR was closed due to lack of activity. Feel free to reopen if it's still relevant.

posthog-bot avatar May 26 '25 07:05 posthog-bot

This PR hasn't seen activity in a week! Should it be merged, closed, or further worked on? If you want to keep it open, post a comment or remove the stale label – otherwise this will be closed in another week. If you want to permanentely keep it open, use the waiting label.

posthog-bot avatar Jun 11 '25 07:06 posthog-bot