-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: rewrite validate_proxy_domains celery task as temporal workflow #22363
Conversation
frontend uses this to update the UI
most should have been schedule_to_close not start to close
90134af
to
cf5940f
Compare
ruff is refusing to ignore these files, can't reproduce locally 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a temporal expert and have no real way of testing / running it but everything looks reasonable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is some of the most easily readable code I've read here.
Also perfect application of Temporal and grpc 🙏
Suspect IssuesThis pull request was deployed and Sentry observed the following issues:
Did you find this useful? React with a 👍 or 👎 |
…#22363) * rewrite validate_proxy_domains celery task as temporal workflow * Fix styling * Create workflow * Formatting * Fix typing for workflow * Ignore proto import typechecking * Add type files * comment * Add proxy gRPC address * return serialized response from create frontend uses this to update the UI * Fix timeouts most should have been schedule_to_close not start to close * Error state * fix formatting ruff is refusing to ignore these files, can't reproduce locally 🤷 * Fix erroring type * remove old proxy celery task * Add delete workflow * Add missing import * Fix proxy workflows not being registered to worker * Add missing workflow method * fix serialization error and wait for dns * fix delete sync_to_async typing issue * Switch from batch exports queue to new "general-purpose" queue
Problem
Towards https://github.com/PostHog/product-internal/issues/602
bonus: now using gRPC instead of http
Changes
👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Does this work well for both Cloud and self-hosted?
How did you test this code?