Skip to content

Commit

Permalink
Adds time limits
Browse files Browse the repository at this point in the history
  • Loading branch information
benjackwhite committed Jan 17, 2024
1 parent 03dd38a commit 1d82c68
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 @@ -144,12 +144,12 @@ def schedule_all_subscriptions() -> None:
deliver_subscription_report.delay(subscription.id)


@app.task()
@app.task(soft_time_limit=30, time_limit=40)
def deliver_subscription_report(subscription_id: int) -> None:
return _deliver_subscription_report(subscription_id)


@app.task()
@app.task(soft_time_limit=30, time_limit=40)
def handle_subscription_value_change(
subscription_id: int, previous_value: str, invite_message: Optional[str] = None
) -> None:
Expand Down

0 comments on commit 1d82c68

Please sign in to comment.