'Initialize scheduler.
Parameters
server : Redis instance
persist : bool
queue_key : str
queue_cls : queue class
dupefilter_key : str
idle_before_close : int'

def __init__(self, server, server_filter, persist, queue_key, queue_cls, dupefilter_key, idle_before_close, queue_name):

    self.server = server
    self.server_filter = server_filter
    self.persist = persist
    self.queue_key = queue_key
    self.queue_cls = queue_cls
    self.dupefilter_key = dupefilter_key
    self.idle_before_close = idle_before_close
    self.queue_name = queue_name
    self.stats = None
