Skip to content

Commit 437418f

Browse files
committed
make SLOW_RESPONSE_TIME configurable.
1 parent ad237ce commit 437418f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

securitybot/user.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,12 @@
1414
from securitybot.auth.auth import AUTH_STATES
1515
from securitybot.state_machine import StateMachine
1616
from securitybot.util import tuple_builder, get_expiration_time
17+
from os import getenv
1718

1819
from typing import Any, Dict, List
1920

2021
ESCALATION_TIME = timedelta(hours=2)
21-
SLOW_RESPONSE_TIME = timedelta(minutes=1)
22+
SLOW_RESPONSE_TIME = timedelta(minutes=int(getenv("SLOW_RESPONSE_TIME", '1')))
2223
BACKOFF_TIME = timedelta(hours=21)
2324

2425
class User(object):

0 commit comments

Comments
 (0)