summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2014-06-15 17:06:29 +0300
committerAlex Grönholm <alex.gronholm@nextday.fi>2014-06-15 21:34:26 +0300
commit89ac8d637367ee62094433b17694162ea5118b17 (patch)
tree4ed64f87c5050241221d52a52208b94efee725a6 /examples
parent7fd9d4bdbc31e8daea240229f0385109b58659a0 (diff)
downloadapscheduler-89ac8d637367ee62094433b17694162ea5118b17.tar.gz
Separated the two pool executors to different classes and moved the debug executor to its own module
Diffstat (limited to 'examples')
-rw-r--r--examples/executors/processpool.py4
1 files changed, 2 insertions, 2 deletions
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'))