Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions readthedocs/projects/tasks/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from django.utils import timezone

from readthedocs.builds.constants import BUILD_FINAL_STATES
from readthedocs.builds.constants import BUILD_STATE_CANCELLED
from readthedocs.builds.constants import BUILD_STATE_FINISHED
from readthedocs.builds.constants import EXTERNAL
from readthedocs.builds.models import Build
from readthedocs.builds.tasks import send_build_status
Expand Down Expand Up @@ -127,7 +127,7 @@ def finish_unhealthy_builds():
builds = Build.objects.filter(query)[:50]
for build in builds:
build.success = False
build.state = BUILD_STATE_CANCELLED
build.state = BUILD_STATE_FINISHED
build.save()

# Tell Celery to cancel this task in case it's in a zombie state.
Expand Down