Skip to content

Instantly share code, notes, and snippets.

@johnistan
Last active August 29, 2015 14:13
Show Gist options
  • Save johnistan/0fc8588d1aca3ab86334 to your computer and use it in GitHub Desktop.
Save johnistan/0fc8588d1aca3ab86334 to your computer and use it in GitHub Desktop.
stop all celery-beat
ssh celery-manager00
sudo su -
puppet agent --disable "se-platform scoring fix"
supervisorctl stop celery-beat
# deploy puppet branches
# double triple check .env
./manage.py shell
from se.core.scoring.models import *
from se.core.scoring.tasks import backfill_points_for_date
# FOR HORIZON
dates = Score.objects.filter(awarded_points__isnull=True, score__gt=0, score_type='weekly').values_list('date', flat=True).distinct()
# FOR EVERYONE ELSE
dates = Score.objects.filter(awarded_points__isnull=True).values_list('date', flat=True).distinct()
backfill_points_for_date(dates[0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment