https://bugzilla.wikimedia.org/show_bug.cgi?id=44349

       Web browser: ---
            Bug ID: 44349
           Summary: updateSpecialPages is run twice on small wikis
           Product: Wikimedia
           Version: wmf-deployment
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          Priority: Unprioritized
         Component: General/Unknown
          Assignee: [email protected]
          Reporter: [email protected]
    Classification: Unclassified
   Mobile Platform: ---

I'm not quite sure why, but special pages are updated on small wikis twice - A
run over all.dblist, and then later a run over small.dblist

In it's present state, the small only cronjob is useless. I'll probably just
disable it for now

class misc::maintenance::update_special_pages {
    cron {
        update_special_pages:
            command => "flock -n /var/lock/update-special-pages
/usr/local/bin/update-special-pages >
/home/wikipedia/logs/norotate/updateSpecialPages.log 2>&1",
            user => "apache",
            monthday => "*/3",
            hour => 5,
            minute => 0,
            ensure => present;
        update_special_pages_small:
            command => "flock -n /var/lock/update-special-pages-small
/usr/local/bin/update-special-pages-small >
/home/wikipedia/logs/norotate/updateSpecialPages-small.log 2>&1",
            user => "apache",
            monthday => "*/3",
            hour => 4,
            minute => 0,
            ensure => present;
    }

    file {
        "/usr/local/bin/update-special-pages":
            source => "puppet:///files/misc/scripts/update-special-pages",
            owner => apache,
            group => wikidev,
            mode => 0755,
            ensure => present;
        "/usr/local/bin/update-special-pages-small":
            source =>
"puppet:///files/misc/scripts/update-special-pages-small",
            owner => apache,
            group => wikidev,
            mode => 0755,
            ensure => present;
    }
}

reedy@fenari:/home/wikipedia/logs/norotate$ cat
/usr/local/bin/update-special-pages
#!/bin/bash

cd /home/wikipedia/common/multiversion
for db in `</home/wikipedia/common/all.dblist`; do
        echo $db
        php MWScript.php updateSpecialPages.php $db
        echo
        echo
done
reedy@fenari:/home/wikipedia/logs/norotate$ cat
/usr/local/bin/update-special-pages-small
#!/bin/bash

cd /home/wikipedia/common/multiversion
for db in `</home/wikipedia/common/small.dblist`; do
        echo $db
        php MWScript.php updateSpecialPages.php $db
        echo
        echo
done

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to