Make command timeout for workers configurable (#62)

This commit is contained in:
Dennis Keitzel
2019-03-10 09:51:50 +01:00
committed by zewelor
parent bc681fd85f
commit a655504f78
7 changed files with 37 additions and 23 deletions
+2 -1
View File
@@ -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()