-
Notifications
You must be signed in to change notification settings - Fork 6
Troubleshooting
Paweł Marczewski edited this page Nov 3, 2019
·
1 revision
Suppose validate_mixing
task started and never finished.
- look at election logs in
/srv/zeus/install/data/election_logs
- look at
journalctl
for that time
Then, if all else fails:
sudo -iu zeus
cd /srv/zeus/install
../virtualenv/bin/python manage.py shell
>>> from helios.models import *
>>> poll = Poll.objects.get(uuid=...)
>>> poll.validate_mixing_status
'running'
That means you can reset the status of the task, and run the task again:
>>> poll.validate_mixing_status = 'pending'
>>> poll.save()
>>> from zeus.tasks import poll_validate_mixing
>>> poll_validate_mixing.delay(poll.pk)
Then reload and check status:
>>> poll = Poll.objects.get(uuid=...)
>>> poll.zeus_stage
'FINISHED'