Revert "perf: 修复事务中任务执行"

This reverts commit cdbe5d31e9.
This commit is contained in:
老广
2023-09-21 15:39:46 +08:00
committed by Eric_Lee
parent 0397bdeb46
commit 4cb499953c
7 changed files with 24 additions and 13 deletions

View File

@@ -3,7 +3,6 @@ from django.utils.translation import gettext_noop, gettext_lazy as _
from accounts.const import AutomationTypes
from accounts.tasks.common import quickstart_automation_by_snapshot
from common.decorators import on_transaction_commit
from common.utils import get_logger
logger = get_logger(__file__)
@@ -16,7 +15,6 @@ __all__ = [
queue="ansible", verbose_name=_('Push accounts to assets'),
activity_callback=lambda self, account_ids, *args, **kwargs: (account_ids, None)
)
@on_transaction_commit
def push_accounts_to_assets_task(account_ids, params=None):
from accounts.models import PushAccountAutomation
from accounts.models import Account