mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-30 20:06:22 -05:00
From review of #864: - background_task's task copied its creator's Context, including _write_intent when started inside get_db_session(commit=True) or RequestDB.write(), so the guard ignored the task's own writes for its lifetime. The task now starts with no declared write. That exposes fetch_channel_source_id (started by the channels config import): it read the Channel, asked the remote site for its source_id, then committed in the same deferred transaction. It now reads, fetches with no transaction open, then writes in a short get_db_session(commit=True). - tags.import_config: commit=True held the write lock through its directory walk, and its exit commit saved changes the need_commit gate used to drop. Reverted to master; splitting its reads from a short write is its own change. The two tests that run it through a request are marked allow_deferred_request_writes until then. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| channel | ||
| test | ||
| video | ||
| __init__.py | ||
| api.py | ||
| common.py | ||
| conftest.py | ||
| cookies.py | ||
| downloader.py | ||
| errors.py | ||
| lib.py | ||
| models.py | ||
| normalize_video_url.py | ||
| schema.py | ||
| transcode.py | ||