[Bug 262015] Re: apt cron.daily script sleeps a random amount of time *TWICE*

2009-12-29 Thread Henning Moll
This one seems to be fixed at least in 9.10. ** Changed in: apt (Ubuntu) Status: Confirmed = Fix Released -- apt cron.daily script sleeps a random amount of time *TWICE* https://bugs.launchpad.net/bugs/262015 You received this bug notification because you are a member of Ubuntu Bugs,

[Bug 262015] Re: apt cron.daily script sleeps a random amount of time twice

2009-03-17 Thread Carlos Campderrós
As noted in a debian bug report [1] , this random sleep is for some kind of time balance over the mirrors to not get hammered at exactly the same time when a lot of machines are switched on, e.g. 9:00 in the morning. So, if your machine is running 24/7, you wouldn't care about this sleep time

[Bug 262015] Re: apt cron.daily script sleeps a random amount of time twice

2009-03-17 Thread Danilo Piazzalunga
I'm ok with the random sleep to avoid hitting the mirrors too hard, but you missed my point. Debian's cron.daily/apt (from sid's apt 0.7.20.2) sleeps a random amount of time, up to 30 minutes. Ubuntu's cron.daily/apt (from Jaunty's apt 0.7.20.2ubuntu2) sleeps *TWICE*. There is a bit of seemingly

[Bug 262015] Re: apt cron.daily script sleeps a random amount of time twice

2009-03-17 Thread Danilo Piazzalunga
As I see it, the cron script can either sleep and then check the proxy settings and proceed with the update, or check the proxy settings, sleep and then proceed with the update. ** Attachment added: To sleep only once, before checking the proxy settings

[Bug 262015] Re: apt cron.daily script sleeps a random amount of time twice

2009-03-17 Thread Danilo Piazzalunga
** Attachment added: To sleep only once, but after checking the proxy settings http://launchpadlibrarian.net/24012310/check-proxy-and-then-sleep.patch -- apt cron.daily script sleeps a random amount of time twice https://bugs.launchpad.net/bugs/262015 You received this bug notification

[Bug 262015] Re: apt cron.daily script sleeps a random amount of time twice

2009-03-17 Thread Henning Moll
If anacron is installed (which is at least on a normal desktop installation), the pausing apt script also blocks other tasks in /etc/cron.daily/. It would be nice if the apt task is put into background and anacron continouse with other tasks. Alternatively, the apt task should be the last task in

[Bug 262015] Re: apt cron.daily script sleeps a random amount of time *TWICE*

2009-03-17 Thread Danilo Piazzalunga
Yes, but it is a different issue. I believe the maintainers decided that the benefits of not overloading the mirrors outweight the costs of slightly delayed cron jobs. ** Summary changed: - apt cron.daily script sleeps a random amount of time twice + apt cron.daily script sleeps a random amount

[Bug 262015] Re: apt cron.daily script sleeps a random amount of time twice

2008-10-20 Thread Ernst Kloppenburg
** Changed in: apt (Ubuntu) Status: New = Confirmed -- apt cron.daily script sleeps a random amount of time twice https://bugs.launchpad.net/bugs/262015 You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. -- ubuntu-bugs mailing list

[Bug 262015] Re: apt cron.daily script sleeps a random amount of time twice

2008-09-23 Thread Dan Drake
I noticed this too, when looking into why my daily cron jobs were taking so long to run. It's not just that the code is duplicated: the script will sleep for no reason. After the first check if we can lock the cache, why should the script wait? If the cache is unlocked, it should start the update