From fc74db4a7694faa7d28bb916eace1320c196de44 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 15 Feb 2021 21:13:47 +0100 Subject: [PATCH] proof than the problem is async --- orchestra/contrib/orchestration/manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/orchestra/contrib/orchestration/manager.py b/orchestra/contrib/orchestration/manager.py index eafe8422..30d88bc6 100644 --- a/orchestra/contrib/orchestration/manager.py +++ b/orchestra/contrib/orchestration/manager.py @@ -122,6 +122,10 @@ def execute(scripts, serialize=False, async=None): kwargs = { '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 with db.clone(model=BackendLog) as handle: log = backend.create_log(*args, using=handle.target)