python - How to enqueue a job in rq from redis -
i have fetch functions , time when execute mysql , save thing redis.now redis have execute functions @ prescribed time.i want use rq scheduler not able find out model in should save imported data redis. totally new in python , redis
if install redis there file (for me ~/lib/python2.7/site-packages/rq/queue.py in turn calls job.py) states enqueue , enqueue_call functions:
def enqueue_call(self, func, args=none, kwargs=none,                  timeout=none, result_ttl=none, description=none,                  depends_on=none):     """creates job represent delayed function call , enqueues it.      `.enqueue()`, except takes function's args     , kwargs explicit arguments.  kwargs passed function     contain options rq itself.     etc...."""  def enqueue(self, f, *args, **kwargs):     """creates job represent delayed function call , enqueues it.      expects function call, along arguments , keyword     arguments.     etc...."""      
Comments
Post a Comment