Skip to content

Commit

Permalink
Docs update.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Apr 28, 2015
1 parent 031ce0c commit 2d2e701
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,15 @@ Function decorators and helpers
from huey.api import Huey, crontab
from huey.backends.redis_backend import RedisBlockingQueue, RedisDataStore,\
RedisSchedule, RedisEventEmitter
RedisSchedule
queue = RedisBlockingQueue('my-app')
result_store = RedisDataStore('my-app')
schedule = RedisSchedule('my-app')
events = RedisEventEmitter('my-app')
huey = Huey(queue, result_store, schedule, events)
huey = RedisHuey('my-app')
# THIS IS EQUIVALENT TO ABOVE CODE:
# huey = RedisHuey('my-app')
#queue = RedisBlockingQueue('my-app')
#result_store = RedisDataStore('my-app')
#schedule = RedisSchedule('my-app')
#huey = Huey(queue, result_store, schedule)
@huey.task()
def slow_function(some_arg):
Expand Down

0 comments on commit 2d2e701

Please sign in to comment.