Time Limit exception


#1

Hello,

I just saw the following exception:

  File "/…/lib/python3.6/subprocess.py", line 830, in communicate
    stdout = self.stdout.read()
dramatiq.middleware.time_limit.TimeLimitExceeded

and from the source code it looks like 600 sec (10 min) is the default value here. Is there a way to set “no time limit” (e.g. passing a -1)? First glance at the code say no.


#2

@actor(time_limit=float("inf")) will do the trick.