diff --git a/src/core/scheduler.py b/src/core/scheduler.py index 446254e..0073118 100644 --- a/src/core/scheduler.py +++ b/src/core/scheduler.py @@ -36,7 +36,10 @@ class EntropyScheduler: # Pre-execution jitter (simulate human hesitation) await asyncio.sleep(random.uniform(0.1, 0.8)) + # Execute the task if asyncio.iscoroutinefunction(task): await task() + elif asyncio.iscoroutine(task): + await task else: task()