26 Commits

Author SHA1 Message Date
Erik Thuning
6c11d5578f Added optional support for user-specified notification endpoints in packages 2024-03-26 15:47:39 +01:00
Erik Thuning
2cbb501361 Forgot an import 2024-01-18 10:34:18 +01:00
Erik Thuning
bb76807921 Added logging when deleting job files 2024-01-18 10:32:13 +01:00
Erik Thuning
7a2736300b Made logging statements use consistent string formats and some minor related fixes 2023-12-21 14:41:11 +01:00
Erik Thuning
b81bd64ffd Made it possible to have more than one handler of the same type
by making the handler's queue an init parameter.
2023-11-23 15:41:42 +01: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
b7f0f562a8 Fixed a use before set, and refactored to make it less likely 2023-08-24 13:40:10 +02:00
Erik Thuning
4f97bfe44e Guarding against exceptions when applying handler results to package 2023-08-24 13:27:04 +02:00
Erik Thuning
c9d99add9d Re-work of transcode handling so that errors in transcoding can be properly reported with no crashes. 2023-05-24 14:48:13 +02:00
Erik Thuning
06eb7dc233 Error notifications no longer cause the entire job to be deleted.
Preparing for improved mid-job error handling and fixed a bug involving the temporary package copy's basedir not existing
2023-04-14 15:08:43 +02:00
Erik Thuning
8582e32f1d Finished updating docstrings to conform to convention. Also made abstract methods throw an exception if they get called. 2023-03-28 16:43:45 +02:00
Erik Thuning
826f548e63 Create a temporary copy of the existing package state,
send that to _handle() methods and clean up after handling is done.
2023-03-15 11:04:24 +01:00
Erik Thuning
a37323a796 Reformatted log line 2022-12-07 16:12:02 +01:00
Erik Thuning
3c276ecde3 Added logging 2022-11-28 16:28:47 +01:00
Erik Thuning
df64ccffb0 The exception shouldn't cause exceptions 2022-10-24 16:48:14 +02:00
Erik Thuning
0b06690a38 * Completed ThumbnailHandler
* Simplified writing Package to json
* Collector now accepts Handler objects instead of name strings
* Refactored Handler._handle() and its invocation from _process():
 - _handle() now returns apply_func
 - boilerplate moved into Handler._process()
 - Handlers can require other handlers to finish before them
2022-10-22 00:19:03 +02:00
Erik Thuning
eb9f0b7371 Renamed QueueThread._handle() to ._process()
Renamed Preprocessor._handle() to ._preprocess()
Consistency updates to all subclasses
2022-10-21 23:15:38 +02:00
Erik Thuning
3ce89b8056 Package IDs are now properly handled at the start of the pipeline 2022-10-19 17:01:29 +02:00
Erik Thuning
4e9b3f1aec Jobs without a pkg_id are now properly handled.
Removed premature optimizations from PackageManager
2022-10-18 16:37:29 +02:00
Erik Thuning
ef6bd5831d Moving to dataclasses for complex queue items 2022-10-17 17:10:16 +02:00
Erik Thuning
21750aa9d2 Restructured config passing 2022-10-14 15:15:55 +02:00
Erik Thuning
e888ec4f65 Cleanup 2022-10-03 14:30:47 +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