Skip to content

Commit

Permalink
making the check to be
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Tushman committed Dec 2, 2014
1 parent 41a11d0 commit 0f3ea8c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added redis-2.7.0-py2.7.egg
Binary file not shown.
2 changes: 1 addition & 1 deletion rq/suspension.py
Expand Up @@ -10,7 +10,7 @@ def suspend(connection, ttl=None):
Note: If you pass in 0 it will invalidate right away
"""
connection.set(WORKERS_SUSPENDED, 1)
if ttl:
if ttl is not None:
connection.expire(WORKERS_SUSPENDED, ttl)


Expand Down

0 comments on commit 0f3ea8c

Please sign in to comment.