wrolpi/modules/videos/test
Roland 42b17ea51b
Jobs: claim atomically, cap pending, own-session subprocesses; retarget before delete
Review fixes.  The worker read a Job's status and wrote RUNNING as two
steps, so a cancel landing between them was overwritten and the Job ran;
_claim_job now does both under the lock.  enqueue_job refuses past
JOB_PENDING_LIMIT pending Jobs.  JobContext.run_command starts the
subprocess in its own session and raises CancelledError when the command
was killed, so a handler cannot mistake it for a normal exit.

The transcode Job now retargets the FileGroup (committed) while the
original file still exists, and deletes the original afterwards
(transcode_video_file gained keep_original).  A crash in between leaves
both files with the database pointing at a real one.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-14 19:39:22 -06:00
..
__init__.py A new start 2021-11-01 16:43:09 -06:00
test_api.py search: don't COUNT(*) OVER() the page query (#702) 2026-09-12 14:44:30 -06:00
test_audio_modeling.py videos: parse the published date out of audio file names too (#676) 2026-08-24 12:14:07 -06:00
test_channel_directory_scenarios.py db: write intent is the opt-in, not a second session helper 2026-08-07 20:15:50 -06:00
test_channel_refresh_events.py videos: silence the automatic channel refresh before downloads (#671) 2026-08-20 15:15:18 -06:00
test_channel_refresh_external_files.py Displaying download progress (speed, eta) for file and video downloads. 2026-03-12 19:31:35 -06:00
test_channels_config.py FileGroups in Collections can be reorganized in the Collection's directory. 2026-01-31 18:08:41 -07:00
test_common.py Transcode: verify the output before replacing the original 2026-09-14 19:18:45 -06:00
test_cookies.py Using shared context to sync cookies between processes. 2026-02-22 14:32:27 -07:00
test_downloader.py videos: codec download preferences with transcode and strict-fail options (#701) 2026-09-07 09:12:00 -06:00
test_lib.py videos: codec download preferences with transcode and strict-fail options (#701) 2026-09-07 09:12:00 -06:00
test_models.py Handling when skip_urls is a None. Logging a warning (and ignoring) when duplicate json files are in a Video FileGroup. 2026-03-13 15:27:43 -06:00
test_transcode.py Transcode: verify the output before replacing the original 2026-09-14 19:18:45 -06:00
test_transcode_job.py Jobs: claim atomically, cap pending, own-session subprocesses; retarget before delete 2026-09-14 19:39:22 -06:00
test_video.py review: flush before the rename, not just after one delete 2026-08-07 15:08:40 -06:00
test_video_edit.py WROL Mode: refuse video edits and transcodes past the API 2026-09-14 19:05:05 -06:00
test_video_modeler_loop.py Fixing bug where not all archives were modeled. 2025-12-18 17:19:57 -07:00
test_video_url_resolver.py Trying to get existing channel using more variations of Youtube URLs. 2026-03-20 17:26:51 -06:00