Commit Graph

29 Commits

Author SHA1 Message Date
Erik Thuning
cbf29c4962 Implementing a unified job pool for transcodes and subtitles never panned out,
so the code was just adding unnecessary complexity. The pipeline now uses
mp.pool to manage ffmpeg jobs as before.

This reverts commit f91109fb3e and deletes the
WorkThread class and its associated tests.
2024-10-17 11:34:00 +02:00
30361abdd9 VisibilityHandler (#3)
Create a VisibilityHandler

Co-authored-by: nenzen <stefan@nenzen.com>
Reviewed-on: #3
Reviewed-by: erth9960 <thuning@dsv.su.se>
Co-authored-by: Stefan Nenzén <nenzen@dsv.su.se>
Co-committed-by: Stefan Nenzén <nenzen@dsv.su.se>
2024-03-27 14:54:33 +01:00
Erik Thuning
6c11d5578f Added optional support for user-specified notification endpoints in packages 2024-03-26 15:47:39 +01:00
Erik Thuning
622f7cbb61 Generating two subtitle tracks per job in the generation test 2023-12-14 16:37:16 +01:00
Erik Thuning
c34ed2cc62 Updated the subtitles generation test to run several generation tasks 2023-12-12 15:39:19 +01:00
Erik Thuning
a5d9eef356 Switched the directory observer in QueueReader from inotify to polling,
in order to properly handle NFS-mounted queue directories.

As a consequence, the default timeout for awaiting job results in the tests
was upped to 10 seconds due to the slightly slower queue pickup.
2023-12-08 11:32:16 +01:00
Erik Thuning
60150c98ab Updated tests to reflect the split subtitles handlers 2023-11-30 16:48:37 +01:00
Erik Thuning
755b8e6839 Reduced the pool size in the tests for more sane error output 2023-11-23 15:44:07 +01:00
Erik Thuning
6309f1f4a4 Added WorkThread, a class handling long-running jobs by means of a prioritized queue. 2023-10-09 16:39:55 +02:00
Erik Thuning
100aa9d4dc Started caching generated package ids so they stay consistent across daemon restarts 2023-09-22 23:01:51 +02:00
Erik Thuning
98595461a0 Fixed existing packages not getting loaded correctly due to a bad assumption about package base paths 2023-05-24 14:46:54 +02:00
Erik Thuning
953181cdcb Updated the tests to use the new course syntax 2023-04-14 15:02:07 +02:00
Erik Thuning
35334a1af2 Added a comment 2023-03-27 17:20:39 +02:00
Erik Thuning
6b7fff6294 Fixed erorr notifications crashing the test 2023-03-27 17:00:47 +02:00
Erik Thuning
278fe30b02 Refactored subtitles handling to include generation via whisper. 2023-03-27 16:36:27 +02:00
Erik Thuning
e2adf73aa6 Added tests for handling of invalid queue items 2022-12-07 16:27:16 +01:00
Erik Thuning
905d7f2f01 Fixed various slop so tests pass 2022-10-31 14:16:04 +01:00
Erik Thuning
24c32a2419 Updated help string 2022-10-20 17:02:05 +02:00
Erik Thuning
eca8caedf1 Updated tests 2022-10-20 09:37:27 +02:00
Erik Thuning
23a21d19ea Updated tests to work with preprocessors 2022-10-17 15:58:00 +02:00
Erik Thuning
2a87b3a759 Accommodating preprocessing in the tests 2022-10-07 19:20:21 +02:00
Erik Thuning
f8cde16001 Started work on preprocessors 2022-10-03 16:37:56 +02:00
Erik Thuning
e4eb18d3f2 Wording 2022-10-03 14:02:39 +02:00
Erik Thuning
ab6de9dc27 Almost there! 2022-09-30 23:55:07 +02:00
Erik Thuning
889665941c The general flow works and passes tests! 2022-09-28 22:30:38 +02:00
Erik Thuning
949eb4f04f PRogress is being made! 2022-09-27 17:38:18 +02:00
Erik Thuning
93ce5cc082 Still experimenting 2022-09-23 16:41:58 +02:00
Erik Thuning
b23597e75a Getting somewhere 2022-09-23 09:49:39 +02:00
Erik Thuning
74bc0598e7 Inital commit 2022-09-15 15:09:25 +02:00