From b1e354619ff2016a1e367b88c2821f9af804c3f7 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Sun, 28 Dec 2025 05:33:09 -0800 Subject: [PATCH] minor bugfixes --- archivebox/crawls/statemachines.py | 2 +- archivebox/hooks.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/archivebox/crawls/statemachines.py b/archivebox/crawls/statemachines.py index 97de1782..904d8e60 100644 --- a/archivebox/crawls/statemachines.py +++ b/archivebox/crawls/statemachines.py @@ -69,7 +69,7 @@ class CrawlMachine(StateMachine, strict_states=True): return False # check if all archiveresults are finished - if results.filter(status__in=[Crawl.StatusChoices.QUEUED, Crawl.StatusChoices.STARTED]).exists(): + if results.filter(status__in=[ArchiveResult.StatusChoices.QUEUED, ArchiveResult.StatusChoices.STARTED]).exists(): return False return True diff --git a/archivebox/hooks.py b/archivebox/hooks.py index aff3ea22..8754053f 100644 --- a/archivebox/hooks.py +++ b/archivebox/hooks.py @@ -1348,7 +1348,7 @@ def kill_process(pid_file: Path, sig: int = signal.SIGTERM, validate: bool = Tru if validate: # Use safe kill with validation cmd_file = pid_file.parent / 'cmd.sh' - safe_kill_process(pid_file, cmd_file, signal_num=sig, validate=True) + safe_kill_process(pid_file, cmd_file, signal_num=sig) else: # Legacy behavior - kill without validation if not pid_file.exists():