feat: add the sqs consumer for billing updates
[!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.
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.
This PR was closed due to lack of activity. Feel free to reopen if it's still relevant.
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.