Arksine
c0389fbf3f
update_manager: use SIGKILL to cancel git processes
...
It is necessary to guarantee that the process dies when cancelled.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-03-29 09:19:14 -04:00
Arksine
9b0c9810a4
shell_command: allow callers to specify a "signal index"
...
Gives callers flexibility as to which signal is used to cancel a command first. By default shell_command will start with SIGTERM, then proceed to SIGKILL.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-03-29 09:19:14 -04:00
Arksine
eb681fc960
update_manager: implement git repo recovery endpoint
...
Rather than attempt to automate recovery, provide an endpoint for clients
to initiate. Clients can choose between a "hard" recovery, which removes
a corrupt repo and restores from a backup, or a "soft" recover which attempts
a git clean followed by a git reset.
Backups are now only taken when a valid repo is detected.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-03-29 09:19:14 -04:00
Arksine
6b0d981274
update_manager: add support for setting a shell command's cwd
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-03-29 09:15:00 -04:00
Arksine
f1f318ea40
shell_command: add support for setting the cwd
...
This allows callers to set the current working directory in which the command should execute.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-03-29 07:17:53 -04:00
Arksine
fb1f76e008
shell_command: ShellCommandError fix
...
Ensure that the stdout and stderr attributes cannot be set to a None type.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-03-28 20:49:19 -04:00
Arksine
d6de095e66
update_manager: capture stdout and stderr from all git calls
...
Report this output back to clients so that users identify a failed command.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-03-28 20:49:19 -04:00
Arksine
b1f8eaae51
update_manager: only perform rsync backups on clean repos
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-03-26 08:55:48 -04:00
Arksine
e7f605327f
history: set maximum jobs stored to 10000
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-03-22 11:45:15 -04:00
Arksine
4b13af4d86
history: track and report total job statistics
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-03-22 11:41:38 -04:00
Arksine
f38cacd513
history: fix "/server/history/list" when no jobs are present
...
Return an empty list instead of an empty object.
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-03-21 14:43:28 -04:00
Arksine
1dc920019c
moonraker: rename the "plugins" package to "components"
...
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
2021-03-18 08:29:31 -04:00