Closed (fixed)
Project:
Hosting
Version:
6.x-0.4-alpha2
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2009 at 03:02 UTC
Updated:
19 Nov 2009 at 02:50 UTC
Jump to comment: Most recent
Comments
Comment #1
omega8cc commented[edit] "some with heavy distros"
Comment #2
Anonymous (not verified) commentededit: bah, ignore this comment.
Comment #3
Anonymous (not verified) commentedThis is odd, how are you tracing that cron is being called on a disabled site? So I can try and reproduce
The query is from hosting_cron_get_sites() and the query is this:
So I'm having trouble finding how it could include a disabled site, unless somehow the disabled site's status has not been changed in the db.. but then it wouldn't appear as 'disabled' in the frontend if this was the case.
When I disable a site, I see the number of sites in the 'Frequency' drop as expected.
Comment #4
omega8cc commentedI noticed that after I disabled most of test sites (with easy to remember subdomains) but then, when crons were invoked, I observed a little too high server load and just checked
ps axfto see what is it and found all disabled sites running cron, while these sites are visible as "disabled". I don't suppose I have Aegir db messed enough to get such results, since everything works as expected otherwise.Comment #5
Anonymous (not verified) commentedHmm I can't reproduce this on HEAD. I'm running a 'watch -n1 "ps axf | grep php"' and when cron comes around (in my case, i've the queue running 'once per second'), only Enabled sites are being executed. Disabled sites (status = '-1' in the database) are not being run.
I'll try and reproduce on 0.4alpha2.
Comment #6
omega8cc commentedAnother odd behavior I noticed: even if cron is set to run every hour (for sites) it runs anyway.
And now something really odd: this screen http://skitch.com/omega8cc/ndcbi/fullscreen says the cron was run 10 minutes ago, while the site displays info about cron last run 1 day 1 hour ago: http://skitch.com/omega8cc/ndcny/fullscreen
Comment #7
Anonymous (not verified) commentedomega8cc is this on 0.4alpha2 ? Or are you running 0.3 still? I'm not reproducing this.
Comment #8
omega8cc commented@mig5
This is running on @anarcat git, but with master/master.
An this is an upgrade from 0.3 (not fresh install)
Should I try it with just cvs head, maybe?
Will try to debug this better.
Thanks
Comment #9
omega8cc commentedAnyway, why not to allow "Items per run: 5" to be configurable?
It doesn't help at all when I can only set "Frequency", since to avoid high loads from cron running on Tattler and other heavy RSS sites, I need to be able to set how many simultaneous crons will run, so I can set "Frequency" to 3 minutes and "Items per run" to 1 (one) because I don't want to increase httpd/PHP and MySQL limits (timeouts etc) only to avoid frozen cron on some sites, because it makes entire system open to DoS attacks.
Comment #10
omega8cc commentedNow I also can't reproduce this. Consider as auto-magically fixed and closed.
Comment #11
anarcat commentedSee #366387: cronjob queue not aggressive enough for the tasks per run settings and other...