Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion mrq/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
try:
from redis.lock import LuaLock
except ImportError:
from redis.lock import Lock
# Change name to avoid NameError raised when use of LuaLock at line 147
from redis.lock import Lock as LuaLock

from .processes import Process, ProcessPool
from .utils import MovingETA, normalize_command
Expand Down
3 changes: 2 additions & 1 deletion mrq/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
try:
from redis.lock import LuaLock
except ImportError:
from redis.lock import Lock
# Change name to avoid NameError raised when use of LuaLock at line 151
from redis.lock import Lock as LuaLock

from collections import defaultdict
from mrq.utils import load_class_by_path
Expand Down