Skip to content
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

fix: Add timeout to subscription reports #19811

Merged
merged 11 commits into from
Jan 17, 2024
Merged

fix: Add timeout to subscription reports #19811

merged 11 commits into from
Jan 17, 2024

Conversation

benjackwhite
Copy link
Contributor

Problem

The subscription reports are blocking other things. One thing we need to do is fix it but for now just add a timeout

Changes

  • Also adds flower locally

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

How did you test this code?

@benjackwhite benjackwhite merged commit 45c4443 into master Jan 17, 2024
92 of 94 checks passed
@benjackwhite benjackwhite deleted the fix/celery-issue branch January 17, 2024 16:38
@@ -144,12 +145,15 @@ def schedule_all_subscriptions() -> None:
deliver_subscription_report.delay(subscription.id)


@app.task()
report_timeout_seconds = settings.PARALLEL_ASSET_GENERATION_MAX_TIMEOUT_MINUTES * 60 * 1.5
Copy link
Member

Choose a reason for hiding this comment

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

not sure why this is * 60 * 1.5 when the setting is PARALLEL_ASSET_GENERATION_MAX_TIMEOUT_MINUTES in minutes. 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants