[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1052247: Blocks (ana)cron daily jobs and system shutdown for too long



Package: sitesummary-client
Version: 0.1.57

The sitesummary-client daily cron job jurrently has a random delay of up
to one hour which is intended to prevent all clients in a network from
submitting their reports at the same time overloading the server.

This has some unfortunate consequences, anacron uses run-parts which
runs scripts sequentially so it also holds up execution of all scripts
ordered after it and since bookworm the anacron systemd service has an
infinite stop timeout (see
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=915379#38) which means
that stopping/restarting the anacron service is blocked until execution
has finished.

This is particularly bad in case of shutdown or reboot which may be
blocked for up to an hour without any means to override execept a hard
power off.

IMHO both the lack of timeout in anacron and sleep in the cron.daily
script are problematic.

There are two possible solutions:

- a shorter maximum delay
- stop using anacron and rely on systemd timers which support random delays

-- 
Guido Berhoerster


Reply to: