minor bugfixes

This commit is contained in:
Nick Sweeting
2025-12-28 05:33:09 -08:00
parent 4ccb0863bb
commit b1e354619f
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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():