chicago-joe

    chicago-joe

    1 year ago
    Hey all, I'm running into an error using state_handlers in the task decorator now. Any thoughts? I'm on Prefect 0.14.20
    File "D:\venv\poetry\.venv\lib\site-packages\prefect\core\task.py", line 159, in init
        old_init(self, *args, **kwargs)
    TypeError: __init__() got an unexpected keyword argument 'state_handers'
    python-BaseException
    @task(log_stdout = True, nout = 2, max_retries = 3, retry_delay = timedelta(minutes = 15), state_handers = [handler])
    Zach Angell

    Zach Angell

    1 year ago
    hey @chicago-joe! from the traceback it looks like a typo "state_handers" instead of "state_handlers"
    chicago-joe

    chicago-joe

    1 year ago
    lol. dang that is embarrassing, good catch and shame on me. Thanks for the quick support, much appreciated sir!