archivebox.importers.service
Generic importer execution: commands discover; ordinary crawls capture.
Module Contents
Classes
The command runner polls this just like a threading.Event. |
Functions
Claim one queued run, optionally the exact run selected by a CLI caller. |
|
Keep discovery independent of the capture runner’s blocking crawl dispatch. |
Data
API
- archivebox.importers.service.enqueue(source: archivebox.importers.models.ImporterSource, action: str) archivebox.importers.models.ImporterRun[source]
- archivebox.importers.service.pause(source: archivebox.importers.models.ImporterSource) None[source]
- class archivebox.importers.service.Cancellation(run_id, stop_event=None)[source]
The command runner polls this just like a threading.Event.
Initialization
- archivebox.importers.service._read_output(run, command, config, output_dir: pathlib.Path, cancellation)[source]