feat(proxy): increase expiry time to 4 days after block
This commit is contained in:
parent
24e464653b
commit
dd37bf0ce6
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ class ProxyMetaAutomation(BaseAutomation):
|
||||||
|
|
||||||
def automate(self, full: bool = False) -> Tuple[bool, str]:
|
def automate(self, full: bool = False) -> Tuple[bool, str]:
|
||||||
# Destroy expired proxies
|
# Destroy expired proxies
|
||||||
cutoff = datetime.datetime.utcnow() - datetime.timedelta(days=3)
|
cutoff = datetime.datetime.utcnow() - datetime.timedelta(days=4)
|
||||||
proxies: List[Proxy] = Proxy.query.filter(
|
proxies: List[Proxy] = Proxy.query.filter(
|
||||||
Proxy.destroyed.is_(None),
|
Proxy.destroyed.is_(None),
|
||||||
Proxy.deprecated < cutoff
|
Proxy.deprecated < cutoff
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue