From 89ac8d637367ee62094433b17694162ea5118b17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Gr=C3=B6nholm?= Date: Sun, 15 Jun 2014 17:06:29 +0300 Subject: Separated the two pool executors to different classes and moved the debug executor to its own module --- examples/executors/processpool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/executors/processpool.py b/examples/executors/processpool.py index b8988df..6bff793 100644 --- a/examples/executors/processpool.py +++ b/examples/executors/processpool.py @@ -6,7 +6,7 @@ from datetime import datetime import os from apscheduler.schedulers.blocking import BlockingScheduler -from apscheduler.executors.pool import PoolExecutor +from apscheduler.executors.pool import ProcessPoolExecutor def tick(): @@ -15,7 +15,7 @@ def tick(): if __name__ == '__main__': scheduler = BlockingScheduler() - scheduler.add_executor(PoolExecutor('process')) + scheduler.add_executor(ProcessPoolExecutor()) scheduler.add_job(tick, 'interval', seconds=3) print('Press Ctrl+{0} to exit'.format('Break' if os.name == 'nt' else 'C')) -- cgit v1.2.1