mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 11:26:25 -05:00
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> |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_api.py | ||
| test_audio_modeling.py | ||
| test_channel_directory_scenarios.py | ||
| test_channel_refresh_events.py | ||
| test_channel_refresh_external_files.py | ||
| test_channels_config.py | ||
| test_common.py | ||
| test_cookies.py | ||
| test_downloader.py | ||
| test_lib.py | ||
| test_models.py | ||
| test_transcode.py | ||
| test_transcode_job.py | ||
| test_video.py | ||
| test_video_edit.py | ||
| test_video_modeler_loop.py | ||
| test_video_url_resolver.py | ||