refactor(api): put the job and worker process channels in job_channel

This commit is contained in:
imSp4rky
2026-11-29 14:33:21 -07:00
parent de2ffcb9bd
commit ccc327e2c3
12 changed files with 665 additions and 413 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ from pathlib import Path
import pytest
from unshackle.core.api import progress as progress_module
from unshackle.core.api.download_worker import write_result
from unshackle.core.api.job_channel import write_json
from unshackle.core.api.progress import build_job_progress_callables
pytestmark = pytest.mark.unit
@@ -110,7 +110,7 @@ def test_concurrent_writers_do_not_clobber_each_other(tmp_path: Path):
start.wait()
try:
for tick in range(40):
write_result(target, {"writer": index, "tick": tick})
write_json(target, {"writer": index, "tick": tick})
except BaseException as exc: # noqa: BLE001 - reported to the test thread
errors.append(exc)