Last active
August 29, 2015 14:13
-
-
Save johnistan/0fc8588d1aca3ab86334 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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