Page MenuHomePhabricator

populate_image_table.py is not run as part of normal
Closed, ResolvedPublic

Event Timeline

It so happens that this is commented out in update_monuments.sh.

@Multichill, is this safe to reenable?

It so happens that this is commented out in update_monuments.sh.

@Multichill, is this safe to reenable?

## Update the image table. Is now another job
# echo "Update image table..."
# /data/project/heritage/pywikibot/pwb.py /data/project/heritage/erfgoedbot/populate_image_table.py

That rings a bell! I think I moved it out and made it a weekly job. All the crons got deleted at some point and this is probably one of the jobs that never got enabled again.

Looked at the crontab:

# m h  dom mon dow   command
# JeanFred: 2015-12-28: Reenabling, see https://phabricator.wikimedia.org/T110498
0 3  * * * jsub -mem 1000m -once -j y -o /data/project/heritage/logs/update_monuments.log -N update_monuments /data/project/heritage/bin/update_monuments.sh >> /data/project/heritage/logs/crontab.log

# Update the image table once a week
# Multichill 2015-06-25: And this one is disabled too
# 0  1  * * 2 jsub -mem 500m -once -j y -o /data/project/heritage/logs/populate_image_table.log -N populate_image_table /usr/bin/python /data/project/heritage/erfgoedbot/populate_image_table.py >> /data/project/heritage/logs/crontab.log

Both jobs got disabled and only one got enabled. I manually submitted the job to the queue. If nothing explodes, it can be enabled in the crontab too.

Mentioned in SAL [2016-03-16T20:45:49Z] <multichill> jsubbed populate_image_table.py for https://phabricator.wikimedia.org/T130107 (see crontab -l for exact command)

This crashed because of MySQL going away. I merged a fix and restarted.

The job completed. I think it is safe to reenable the cron.