diff options
author | Alex Grönholm <alex.gronholm@nextday.fi> | 2014-06-16 13:36:46 +0300 |
---|---|---|
committer | Alex Grönholm <alex.gronholm@nextday.fi> | 2014-06-16 13:36:46 +0300 |
commit | bb20daf50be0a35c449568e3961790ce8b153366 (patch) | |
tree | 77ff2202c8e7ae22c599a693e89f76bf5bddc6e0 /apscheduler | |
parent | a3e369bb15aebe31f4833fe859750d73e802d40e (diff) | |
download | apscheduler-bb20daf50be0a35c449568e3961790ce8b153366.tar.gz |
Accept the max_workers parameter as a string too
Diffstat (limited to 'apscheduler')
-rw-r--r-- | apscheduler/executors/pool.py | 4 |
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) |