Skip to content

Commit

Permalink
Fix up timeout reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Jan 17, 2024
1 parent ba42c40 commit 5c93f2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ee/tasks/subscriptions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ def schedule_all_subscriptions() -> None:
deliver_subscription_report.delay(subscription.id)


report_timeout = settings.PARALLEL_ASSET_GENERATION_MAX_TIMEOUT_MINUTES * 1.5
report_timeout_seconds = settings.PARALLEL_ASSET_GENERATION_MAX_TIMEOUT_MINUTES * 60 * 1.5


@app.task(soft_time_limit=report_timeout, timeout=report_timeout + 10)
@app.task(soft_time_limit=report_timeout_seconds, timeout=report_timeout_seconds + 10)
def deliver_subscription_report(subscription_id: int) -> None:
return _deliver_subscription_report(subscription_id)

Expand Down

0 comments on commit 5c93f2f

Please sign in to comment.