summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Grönholm <alex.gronholm@nextday.fi>2014-06-16 13:36:46 +0300
committerAlex Grönholm <alex.gronholm@nextday.fi>2014-06-16 13:36:46 +0300
commitbb20daf50be0a35c449568e3961790ce8b153366 (patch)
tree77ff2202c8e7ae22c599a693e89f76bf5bddc6e0
parenta3e369bb15aebe31f4833fe859750d73e802d40e (diff)
downloadapscheduler-bb20daf50be0a35c449568e3961790ce8b153366.tar.gz
Accept the max_workers parameter as a string too
-rw-r--r--apscheduler/executors/pool.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/apscheduler/executors/pool.py b/apscheduler/executors/pool.py
index 38bb7a5..bb3aa56 100644
--- a/apscheduler/executors/pool.py
+++ b/apscheduler/executors/pool.py
@@ -27,7 +27,7 @@ class ThreadPoolExecutor(BasePoolExecutor):
"""
def __init__(self, max_workers=10):
- pool = concurrent.futures.ThreadPoolExecutor(max_workers)
+ pool = concurrent.futures.ThreadPoolExecutor(int(max_workers))
super(ThreadPoolExecutor, self).__init__(pool)
@@ -39,5 +39,5 @@ class ProcessPoolExecutor(BasePoolExecutor):
"""
def __init__(self, max_workers=10):
- pool = concurrent.futures.ProcessPoolExecutor(max_workers)
+ pool = concurrent.futures.ProcessPoolExecutor(int(max_workers))
super(ProcessPoolExecutor, self).__init__(pool)