From d1efc8b55db45af9e8a602539460e3b9f3bc070b Mon Sep 17 00:00:00 2001 From: ilvalle Date: Sun, 4 Feb 2018 10:02:14 +0100 Subject: [PATCH] fix py37 conflict due to async definition in scheduler --- gluon/scheduler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gluon/scheduler.py b/gluon/scheduler.py index 710815db..79d22c0f 100644 --- a/gluon/scheduler.py +++ b/gluon/scheduler.py @@ -525,7 +525,7 @@ class MetaScheduler(threading.Thread): self.have_heartbeat = True # set to False to kill self.empty_runs = 0 - def async(self, task): + def local_async(self, task): """Start the background process. Args: @@ -913,7 +913,7 @@ class Scheduler(MetaScheduler): self.w_stats.empty_runs = 0 self.w_stats.status = RUNNING self.w_stats.total += 1 - self.wrapped_report_task(task, self.async(task)) + self.wrapped_report_task(task, self.local_async(task)) if not self.w_stats.status == DISABLED: self.w_stats.status = ACTIVE else: