Skip to content

Commit

Permalink
fix behaviour in case of incorrect config
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Bazhal committed Jun 20, 2019
1 parent 9e52ea6 commit af3e102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kopf/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def get_syn_executor() -> concurrent.futures.ThreadPoolExecutor:
@staticmethod
def set_synchronous_tasks_threadpool_limit(new_limit: int):
if new_limit < 1:
return
raise ValueError('Can`t set threadpool limit lower than 1')

WorkersConfig.synchronous_tasks_threadpool_limit = new_limit
if WorkersConfig.threadpool_executor:
Expand Down

0 comments on commit af3e102

Please sign in to comment.