mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-01-04 09:55:33 +10:00
logging and admin ui improvements
This commit is contained in:
@@ -115,12 +115,10 @@ def add(urls: str | list[str],
|
||||
# - Repeat until max_depth reached
|
||||
|
||||
if bg:
|
||||
# Background mode: start orchestrator and return immediately
|
||||
print('[yellow]\\[*] Running in background mode - starting orchestrator...[/yellow]')
|
||||
orchestrator = Orchestrator(exit_on_idle=True)
|
||||
orchestrator.start() # Fork to background
|
||||
# Background mode: just queue work and return (orchestrator via server will pick it up)
|
||||
print('[yellow]\\[*] URLs queued. Orchestrator will process them (run `archivebox server` if not already running).[/yellow]')
|
||||
else:
|
||||
# Foreground mode: run orchestrator until all work is done
|
||||
# Foreground mode: run orchestrator inline until all work is done
|
||||
print(f'[green]\\[*] Starting orchestrator to process crawl...[/green]')
|
||||
orchestrator = Orchestrator(exit_on_idle=True)
|
||||
orchestrator.runloop() # Block until complete
|
||||
|
||||
Reference in New Issue
Block a user