archivebox.workers.tasks
Background task functions for queuing work to the background runner.
These functions queue Snapshots/Crawls for processing by setting their status
to QUEUED so archivebox run --daemon or archivebox server can pick them up.
NOTE: These functions do NOT start the runner. They assume it’s already
running via archivebox server or will be run inline by the CLI.
Module Contents
Functions
Add URLs and queue them for archiving. |
|
Queue multiple snapshots for archiving via the shared runner loop. |
|
Queue a single snapshot for archiving via the shared runner loop. |
API
- archivebox.workers.tasks.bg_add(add_kwargs: dict) int[source]
Add URLs and queue them for archiving.
Returns the number of snapshots created.