Skip to content

Commit bf922cf

Browse files
authored
Merge pull request #2359 from rtfd/email-timeout
Add timeout to email task
2 parents 9013d23 + 72f484c commit bf922cf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

readthedocs/core/tasks.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
1010

1111
log = logging.getLogger(__name__)
1212

13+
EMAIL_TIME_LIMIT = 30
1314

14-
@task(queue='web')
15+
16+
@task(queue='web', time_limit=EMAIL_TIME_LIMIT)
1517
def send_email_task(recipient, subject, template, template_html, context=None):
1618
"""Send multipart email
1719

0 commit comments

Comments
 (0)