proof than the problem is async

This commit is contained in:
Cayo Puigdefabregas 2021-02-15 21:13:47 +01:00
parent e5beae6360
commit fc74db4a76
1 changed files with 4 additions and 0 deletions

View File

@ -122,6 +122,10 @@ def execute(scripts, serialize=False, async=None):
kwargs = { kwargs = {
'async': is_async, 'async': is_async,
} }
# import pdb; pdb.set_trace()
from orchestra.contrib.orchestration.models import Server
oop = Server.objects.all()
server_oop = route.host
# we clone the connection just in case we are isolated inside a transaction # we clone the connection just in case we are isolated inside a transaction
with db.clone(model=BackendLog) as handle: with db.clone(model=BackendLog) as handle:
log = backend.create_log(*args, using=handle.target) log = backend.create_log(*args, using=handle.target)