Commits
Click on a commit to change the comparison rangeFix AttributeError for functools.partial hooks in Runner
Replace direct hook.__name__ access with get_hook_name() utility in
_run_hooks function to properly handle functools.partial objects.
The get_hook_name utility already exists in prefect.utilities._engine
and handles partial objects by checking hook.func.__name__ when the
hook is a functools.partial instance.
This fix resolves the issue where on_cancellation and on_crashed hooks
would fail with AttributeError when using functools.partial objects
in flows served via Runner.
Co-Authored-By: alex.s@prefect.io <ajstreed1@gmail.com>1 day ago
by devin-ai-integration[bot]