mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-20 09:55:10 -04:00
fix timeout check showing regardless of value
This commit is contained in:
parent
7a9460f45b
commit
55e286972d
1 changed files with 8 additions and 7 deletions
|
@ -182,13 +182,14 @@ class ArchivingConfig(BaseConfigSet):
|
||||||
|
|
||||||
@field_validator('TIMEOUT', mode='after')
|
@field_validator('TIMEOUT', mode='after')
|
||||||
def validate_timeout(cls, v):
|
def validate_timeout(cls, v):
|
||||||
print(f'[red][!] Warning: TIMEOUT is set too low! (currently set to TIMEOUT={v} seconds)[/red]', file=sys.stderr)
|
if int(v) < 5:
|
||||||
print(' You must allow *at least* 5 seconds for indexing and archive methods to run succesfully.', file=sys.stderr)
|
print(f'[red][!] Warning: TIMEOUT is set too low! (currently set to TIMEOUT={v} seconds)[/red]', file=sys.stderr)
|
||||||
print(' (Setting it to somewhere between 30 and 3000 seconds is recommended)', file=sys.stderr)
|
print(' You must allow *at least* 5 seconds for indexing and archive methods to run succesfully.', file=sys.stderr)
|
||||||
print(file=sys.stderr)
|
print(' (Setting it to somewhere between 30 and 3000 seconds is recommended)', file=sys.stderr)
|
||||||
print(' If you want to make ArchiveBox run faster, disable specific archive methods instead:', file=sys.stderr)
|
print(file=sys.stderr)
|
||||||
print(' https://github.com/ArchiveBox/ArchiveBox/wiki/Configuration#archive-method-toggles', file=sys.stderr)
|
print(' If you want to make ArchiveBox run faster, disable specific archive methods instead:', file=sys.stderr)
|
||||||
print(file=sys.stderr)
|
print(' https://github.com/ArchiveBox/ArchiveBox/wiki/Configuration#archive-method-toggles', file=sys.stderr)
|
||||||
|
print(file=sys.stderr)
|
||||||
return v
|
return v
|
||||||
|
|
||||||
@field_validator('CHECK_SSL_VALIDITY', mode='after')
|
@field_validator('CHECK_SSL_VALIDITY', mode='after')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue