Skip to content

Commit

Permalink
fix: 修改revoke导入方式 TencentBlueKing#1464
Browse files Browse the repository at this point in the history
  • Loading branch information
huangpixu committed Jan 7, 2025
1 parent 73de593 commit 167cb00
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pipeline/engine/models/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import traceback

from celery import current_app
from celery.task.control import revoke

from django.db import models, transaction
from django.utils import timezone
from django.utils.translation import gettext_lazy as _
Expand All @@ -34,6 +34,7 @@
from pipeline.log.models import LogEntry
from pipeline.utils.uniqid import node_uniqid, uniqid

revoke = current_app.control.revoke
logger = logging.getLogger("celery")

RERUN_MAX_LIMIT = pipeline_settings.PIPELINE_RERUN_MAX_TIMES
Expand Down

0 comments on commit 167cb00

Please sign in to comment.