apscheduler.jobstores.redis

API

class apscheduler.jobstores.redis.RedisJobStore(db=0, jobs_key='apscheduler.jobs', run_times_key='apscheduler.run_times', pickle_protocol=pickle.HIGHEST_PROTOCOL, **connect_args)

Bases: apscheduler.jobstores.base.BaseJobStore

Stores jobs in a Redis database. Any leftover keyword arguments are directly passed to redis’s StrictRedis.

Plugin alias: redis

Parameters:
  • db (int) – the database number to store jobs in
  • jobs_key (str) – key to store jobs in
  • run_times_key (str) – key to store the jobs’ run times in
  • pickle_protocol (int) – pickle protocol level to use (for serialization), defaults to the highest available

Introduction

RedisJobStore stores jobs in a redis database.

External dependencies redis
Example examples/jobstores/redis_.py (view online).