apscheduler.jobstores.zookeeper

API

class apscheduler.jobstores.zookeeper.ZooKeeperJobStore(path='/apscheduler', client=None, close_connection_on_exit=False, pickle_protocol=pickle.HIGHEST_PROTOCOL, **connect_args)

Bases: apscheduler.jobstores.base.BaseJobStore

Stores jobs in a ZooKeeper tree. Any leftover keyword arguments are directly passed to kazoo’s KazooClient.

Plugin alias: zookeeper

Parameters:
  • path (str) – path to store jobs in
  • client – a KazooClient instance to use instead of providing connection arguments
  • pickle_protocol (int) – pickle protocol level to use (for serialization), defaults to the highest available

Introduction

ZooKeeperJobStore stores jobs in an Apache ZooKeeper instance.

External dependencies kazoo
Example examples/jobstores/zookeeper.py (view online).