Commit Graph

16 Commits

Author SHA1 Message Date
Ingo Oppermann
f445d0c992 Add tee progress parsing 2025-06-19 16:11:30 +02:00
Ingo Oppermann
de9a30a108 Add internal mock modules 2024-10-29 14:55:55 +01:00
Ingo Oppermann
2ee7fa7e41 Make resources the only direct user of psutil 2024-10-29 12:25:39 +01:00
Ingo Oppermann
412fbedea3 Make psutil a submodule of resources, remove default psutil 2024-10-28 16:13:13 +01:00
Ingo Oppermann
2dbe5b5685 Add GPU support 2024-10-24 15:08:26 +02:00
Ingo Oppermann
70a49f8bdb Process []byte instread of string in parser 2024-07-26 11:31:47 +02:00
Ingo Oppermann
c8ab8567d9 Return error if onBeforeStart fails 2023-07-12 20:56:03 +02:00
Ingo Oppermann
9545525e46 Extend process reconnect test 2023-05-02 20:53:49 +02:00
Ingo Oppermann
c23722416b Fix test 2023-05-01 16:39:47 +02:00
Ingo Oppermann
b7e0afc7a7 Fix tests 2023-04-29 08:26:22 +02:00
Ingo Oppermann
d59158de03 Allow hard and soft limiting a process
A hard limit will kill the process as soon as either CPU or memory
consumption are above a defined limit for a certain amount of time.

A soft limit will throttle the CPU usage if above a defined limit and
kill the process if memory consumption is above a defined limit. The
soft limit can be enabled/disabled on demand.

The default is hard limit.
2023-04-26 16:01:50 +02:00
Ingo Oppermann
b63b23527b Add scheduler and timeout to processes
The scheduler allows to define when a process should run. It can be either
a timestamp in RFC3339 format or a crontab expression. If a scheduler is
given, reconnect and the reconnect delay will only apply to processes that
exited as failed.

The timeout allows to define when a process should be gracefully stopped.
It is measured from the actual start of that process including all reconnects
due to failures. If the process finished regularly, the timeout will be
reset.
2023-03-21 14:51:43 +01:00
Ingo Oppermann
86b3c053f1 Add exit state and last progress data to process report history 2023-03-01 15:28:28 +01:00
Ingo Oppermann
50deaef4d3 Wait for process to exit when stopping
If a process has some cleanup with purge-on-delete defined, the purge
has to wait until the process actually exited. Otherwise it may happen
that the process got the signal, files are purged, but the process is
still writing some files in order to exit cleanly. This would lead to
some artefacts left on the filesystem.
2022-08-17 15:13:17 +03:00
Ingo Oppermann
814e205ab5 Fix tests such that ffmpeg binary is not required 2022-06-24 19:47:12 +02:00
Jan Stabenow
9c0b535199 Add v16.7.2 2022-05-13 19:26:45 +02:00