Redis example

417 views
Skip to first unread message

Aqs Younas

unread,
Apr 17, 2014, 5:46:31 PM4/17/14
to apsch...@googlegroups.com
Hi..!

I am new to APScheduler and wanna know how to add a particular cronjob in Redis using APS, how to schedule and unscheduled it and delete it from redis.  Actually, I couldn't find any example for adding it.Plz give me some example for adding the jobs in redis Jobstore..


Looking Forward For Your Help )

Regards

Alex Grönholm

unread,
Apr 18, 2014, 12:15:58 AM4/18/14
to apsch...@googlegroups.com
18.04.2014 00:46, Aqs Younas kirjoitti:
Hi..!

I am new to APScheduler and wanna know how to add a particular cronjob in Redis using APS, how to schedule and unscheduled it and delete it from redis.  Actually, I couldn't find any example for adding it.Plz give me some example for adding the jobs in redis Jobstore..

APScheduler 3.0 does have a redis example (which you seem to have found already).
It's just a matter of using RedisJobStore in place of whatever else you use now.

Looking Forward For Your Help )

Regards

--
You received this message because you are subscribed to the Google Groups "APScheduler" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apscheduler...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Aqs Younas

unread,
Apr 18, 2014, 1:58:40 PM4/18/14
to apsch...@googlegroups.com
Thanks for Your reply..

But When i try to run the redis_.py file i got this error
"from apscheduler.jobstores.redis import RedisJobStore
ImportError: No module named redis"

Though redis is installed on my computer.
Looking for you help :)



--
You received this message because you are subscribed to a topic in the Google Groups "APScheduler" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/apscheduler/ZOYhVjtWKQg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to apscheduler...@googlegroups.com.

Alex Grönholm

unread,
Apr 19, 2014, 9:30:40 AM4/19/14
to apsch...@googlegroups.com
18.04.2014 20:58, Aqs Younas kirjoitti:
Thanks for Your reply..

But When i try to run the redis_.py file i got this error
"from apscheduler.jobstores.redis import RedisJobStore
ImportError: No module named redis"

Though redis is installed on my computer.
Looking for you help :)
I suppose you don't have the redis Python bindings installed?
"pip install redis" will fix that.
Reply all
Reply to author
Forward
0 new messages