mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-25 16:51:00 +00:00
Undo one connection per transition
This commit is contained in:
parent
f7948a55bf
commit
51b7c0d919
1 changed files with 19 additions and 20 deletions
|
@ -6,7 +6,7 @@ import time
|
||||||
import traceback
|
import traceback
|
||||||
import uuid
|
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.conf import settings
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
|
|
||||||
|
@ -210,7 +210,6 @@ class StatorRunner:
|
||||||
Wrapper for atransition_attempt with fallback error handling
|
Wrapper for atransition_attempt with fallback error handling
|
||||||
"""
|
"""
|
||||||
task_name = f"stator.run_transition:{instance._meta.label_lower}#{{id}} from {instance.state}"
|
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):
|
with sentry.start_transaction(op="task", name=task_name):
|
||||||
sentry.set_context(
|
sentry.set_context(
|
||||||
"instance",
|
"instance",
|
||||||
|
|
Loading…
Reference in a new issue