Undo one connection per transition
This commit is contained in:
parent
f7948a55bf
commit
51b7c0d919
|
@ -6,7 +6,7 @@ import time
|
|||
import traceback
|
||||
import uuid
|
||||
|
||||
from asgiref.sync import ThreadSensitiveContext, async_to_sync, sync_to_async
|
||||
from asgiref.sync import async_to_sync, sync_to_async
|
||||
from django.conf import settings
|
||||
from django.utils import timezone
|
||||
|
||||
|
@ -210,7 +210,6 @@ class StatorRunner:
|
|||
Wrapper for atransition_attempt with fallback error handling
|
||||
"""
|
||||
task_name = f"stator.run_transition:{instance._meta.label_lower}#{{id}} from {instance.state}"
|
||||
async with ThreadSensitiveContext():
|
||||
with sentry.start_transaction(op="task", name=task_name):
|
||||
sentry.set_context(
|
||||
"instance",
|
||||
|
|
Loading…
Reference in New Issue