You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
480 B
25 lines
480 B
"""
|
|
Stores jobs in an array in RAM. Provides no persistence support.
|
|
"""
|
|
|
|
from apscheduler.jobstores.base import JobStore
|
|
|
|
|
|
class RAMJobStore(JobStore):
|
|
def __init__(self):
|
|
self.jobs = []
|
|
|
|
def add_job(self, job):
|
|
self.jobs.append(job)
|
|
|
|
def update_job(self, job):
|
|
pass
|
|
|
|
def remove_job(self, job):
|
|
self.jobs.remove(job)
|
|
|
|
def load_jobs(self):
|
|
pass
|
|
|
|
def __repr__(self):
|
|
return '<%s>' % (self.__class__.__name__)
|
|
|