Skip to content

Commit 2134030

Browse files
authored
Builds: don't check for FF flag (#12422)
We are going to enable this for all the projects with the FF by default now, which means that there isn't going to be a relationship between `Project` and `Feature` once it's deployed.
1 parent 18c1771 commit 2134030

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

readthedocs/projects/tasks/utils.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
def clean_build(version):
2929
"""Clean the files used in the build of the given version."""
30-
from readthedocs.projects.models import Feature
3130

3231
if version.project.has_feature(
3332
Feature.DONT_CLEAN_BUILD,
@@ -121,11 +120,7 @@ def finish_unhealthy_builds():
121120
"""
122121
log.debug("Running task to finish inactive builds (no healtcheck received).")
123122
delta = datetime.timedelta(seconds=settings.RTD_BUILD_HEALTHCHECK_TIMEOUT)
124-
query = (
125-
~Q(state__in=BUILD_FINAL_STATES)
126-
& Q(healthcheck__lt=timezone.now() - delta)
127-
& Q(project__feature__feature_id=Feature.BUILD_HEALTHCHECK)
128-
)
123+
query = ~Q(state__in=BUILD_FINAL_STATES) & Q(healthcheck__lt=timezone.now() - delta)
129124

130125
projects_finished = set()
131126
builds_finished = []

0 commit comments

Comments
 (0)