From fbfad9fbf5e061cb7c658dada3c4014c9796021c Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Thu, 10 Nov 2022 23:42:43 -0700 Subject: Inbound and outbound follows basic working --- stator/runner.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'stator/runner.py') diff --git a/stator/runner.py b/stator/runner.py index 1392e4d..0b42b27 100644 --- a/stator/runner.py +++ b/stator/runner.py @@ -50,9 +50,6 @@ class StatorRunner: min(space_remaining, self.MAX_TASKS_PER_MODEL), timezone.now() + datetime.timedelta(seconds=self.LOCK_TIMEOUT), ): - print( - f"Attempting transition on {instance._meta.label_lower}#{instance.pk}" - ) self.tasks.append( asyncio.create_task(self.run_transition(instance)) ) @@ -76,6 +73,9 @@ class StatorRunner: Wrapper for atransition_attempt with fallback error handling """ try: + print( + f"Attempting transition on {instance._meta.label_lower}#{instance.pk} from state {instance.state}" + ) await instance.atransition_attempt() except BaseException: traceback.print_exc() -- cgit v1.2.3