Page MenuHomePhabricator

ruarbcom tool runs count.py job once per minute
Closed, ResolvedPublic

Description

* * * * * jsub -quiet -once python /data/project/ruarbcom/count/count.py --page=Википедия:Выборы_арбитров/Осень_2016_2/Голосование/! --basepath=/data/project/ru
arbcom/public_html/23.5/raw --dbconfig=0 --regdate=20160812000000 --countto=20161112000000 --countvalue=500 --activityfrom=20160512000000 --activityto=20161112000000 --activityvalue=100

This job looks like it actually does nothing useful today, but maybe I'm misunderstanding the script. Even if it doing useful work, it seems unlikely that up to the minute vote counts are needed. Computing the votes once per hour would probably be plenty.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

I’ve commented out that line at least until the next elections (end of May).

As for minutely counts, there’s actually demand from the users: they want to see their vote taken into account as soon as possible since the first moments of the elections. Delays up to an hour would be inacceptable here.

If submitting a job every minute isn’t the preferred way to update the counts minutely, please recommend some other approach.

I think that you really could set cronjob to run every five minutes for example. It's five times less ! Please remember that you use shared service.

If you really want to have a bot that instantly reacts, you can take a look on continuous jobs. But please remember to disable this when it do nothing !!!

Continuous jobs are really an option. I will convert my script into such a thing before next elections.

Kalan claimed this task.

There’s now an equivalent continuous job, so marking this as resolved for now.