mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 14:44:29 -04:00
virtual-time-budget doesnt work with some chrome stuff
This commit is contained in:
parent
62078a77f8
commit
9f05cf8283
2 changed files with 7 additions and 4 deletions
|
@ -335,6 +335,8 @@ def log_archiving_paused(num_links: int, idx: int, timestamp: str):
|
||||||
|
|
||||||
def log_archiving_finished(num_links: int):
|
def log_archiving_finished(num_links: int):
|
||||||
|
|
||||||
|
from core.models import Snapshot
|
||||||
|
|
||||||
end_ts = datetime.now(timezone.utc)
|
end_ts = datetime.now(timezone.utc)
|
||||||
_LAST_RUN_STATS.archiving_end_ts = end_ts
|
_LAST_RUN_STATS.archiving_end_ts = end_ts
|
||||||
assert _LAST_RUN_STATS.archiving_start_ts is not None
|
assert _LAST_RUN_STATS.archiving_start_ts is not None
|
||||||
|
@ -355,9 +357,11 @@ def log_archiving_finished(num_links: int):
|
||||||
print(' - {} links skipped'.format(_LAST_RUN_STATS.skipped))
|
print(' - {} links skipped'.format(_LAST_RUN_STATS.skipped))
|
||||||
print(' - {} links updated'.format(_LAST_RUN_STATS.succeeded + _LAST_RUN_STATS.failed))
|
print(' - {} links updated'.format(_LAST_RUN_STATS.succeeded + _LAST_RUN_STATS.failed))
|
||||||
print(' - {} links had errors'.format(_LAST_RUN_STATS.failed))
|
print(' - {} links had errors'.format(_LAST_RUN_STATS.failed))
|
||||||
print()
|
|
||||||
print(' {lightred}Hint:{reset} To manage your archive in a Web UI, run:'.format(**ANSI))
|
if Snapshot.objects.count() < 50:
|
||||||
print(' archivebox server 0.0.0.0:8000')
|
print()
|
||||||
|
print(' {lightred}Hint:{reset} To manage your archive in a Web UI, run:'.format(**ANSI))
|
||||||
|
print(' archivebox server 0.0.0.0:8000')
|
||||||
|
|
||||||
|
|
||||||
def log_link_archiving_started(link: "Link", link_dir: str, is_new: bool):
|
def log_link_archiving_started(link: "Link", link_dir: str, is_new: bool):
|
||||||
|
|
|
@ -241,7 +241,6 @@ def chrome_args(**options) -> List[str]:
|
||||||
'--disable-dev-shm-usage',
|
'--disable-dev-shm-usage',
|
||||||
'--disable-software-rasterizer',
|
'--disable-software-rasterizer',
|
||||||
'--run-all-compositor-stages-before-draw',
|
'--run-all-compositor-stages-before-draw',
|
||||||
f'--virtual-time-budget={options["TIMEOUT"] * 1000}',
|
|
||||||
'--hide-scrollbars',
|
'--hide-scrollbars',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue