apscheduler.executors.pool

class apscheduler.executors.pool.BasePoolExecutor(pool)

Bases: BaseExecutor

shutdown(wait=True)

Shuts down this executor.

Parameters:

wait (bool) – True to wait until all submitted jobs have been executed

class apscheduler.executors.pool.ProcessPoolExecutor(max_workers=10, pool_kwargs=None)

Bases: BasePoolExecutor

An executor that runs jobs in a concurrent.futures process pool.

Plugin alias: processpool

Parameters:
  • max_workers – the maximum number of spawned processes.

  • pool_kwargs – dict of keyword arguments to pass to the underlying ProcessPoolExecutor constructor

class apscheduler.executors.pool.ThreadPoolExecutor(max_workers=10, pool_kwargs=None)

Bases: BasePoolExecutor

An executor that runs jobs in a concurrent.futures thread pool.

Plugin alias: threadpool

Parameters:
  • max_workers – the maximum number of spawned threads.

  • pool_kwargs – dict of keyword arguments to pass to the underlying ThreadPoolExecutor constructor

Module Contents

class apscheduler.executors.pool.ThreadPoolExecutor(max_workers=10, pool_kwargs=None)

Bases: BasePoolExecutor

An executor that runs jobs in a concurrent.futures thread pool.

Plugin alias: threadpool

Parameters:
  • max_workers – the maximum number of spawned threads.

  • pool_kwargs – dict of keyword arguments to pass to the underlying ThreadPoolExecutor constructor

class apscheduler.executors.pool.ProcessPoolExecutor(max_workers=10, pool_kwargs=None)

Bases: BasePoolExecutor

An executor that runs jobs in a concurrent.futures process pool.

Plugin alias: processpool

Parameters:
  • max_workers – the maximum number of spawned processes.

  • pool_kwargs – dict of keyword arguments to pass to the underlying ProcessPoolExecutor constructor