mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-09-12 19:50:57 +05:00
Use configured abxpkg library for queued binaries
This commit is contained in:
parent
99e863f997
commit
2b194c48cd
@ -1334,7 +1334,7 @@ async def _run_binary(binary_id: str) -> None:
|
||||
process_service = PersistedProcessService(bus)
|
||||
binary_process_service = ArchiveBoxBinaryService(bus)
|
||||
BinaryCacheService(bus, backend=ArchiveBoxDBBinaryCacheBackend())
|
||||
BinaryService(bus)
|
||||
BinaryService(bus, lib_dir=Path(config["ABXPKG_LIB_DIR"]))
|
||||
TagService(bus)
|
||||
ArchiveResultService(bus)
|
||||
MachineService(bus)
|
||||
|
||||
@ -719,7 +719,8 @@ def test_run_pending_crawls_processes_queued_crawl_and_real_binary(tmp_path):
|
||||
assert Snapshot.objects.filter(crawl=crawl, status=Snapshot.StatusChoices.SEALED).count() == 1
|
||||
assert binary.status == Binary.StatusChoices.INSTALLED
|
||||
assert binary.retry_at is None
|
||||
assert Path(binary.abspath).is_symlink()
|
||||
assert Path(binary.abspath).is_file()
|
||||
assert binary.version
|
||||
assert binary.binprovider == "env"
|
||||
|
||||
|
||||
@ -877,7 +878,8 @@ def test_run_pending_crawls_resolves_real_binary_through_abxpkg(tmp_path):
|
||||
assert result == 0
|
||||
assert binary.status == Binary.StatusChoices.INSTALLED
|
||||
assert binary.retry_at is None
|
||||
assert Path(binary.abspath).is_symlink()
|
||||
assert Path(binary.abspath).is_file()
|
||||
assert binary.version
|
||||
assert binary.binprovider == "env"
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user