Make command timeout for workers configurable (#62)
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
||||
class BaseWorker:
|
||||
def __init__(self, **args):
|
||||
def __init__(self, command_timeout, **args):
|
||||
self.command_timeout = command_timeout
|
||||
for arg, value in args.items():
|
||||
setattr(self, arg, value)
|
||||
self._setup()
|
||||
|
||||
Reference in New Issue
Block a user