Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos committed Mar 3, 2022
1 parent 85f529a commit fefbe62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion readthedocs/projects/tasks/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import redis
import structlog
from celery.worker.request import Request
from django.conf import settings
from django.db.models import Q
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
Expand Down Expand Up @@ -175,7 +176,7 @@ def finish_inactive_builds():
# ]
log.debug("Redis queue task.", queue=queue, body=body)

build_pk = body[1]["build_pk"]
build_pk = body[1]["build_id"]
if build_pk == build.pk:
# The build is not stale, it's queued to be executed
log.info(
Expand Down

0 comments on commit fefbe62

Please sign in to comment.