https://prefect.io logo
#prefect-community
Title
# prefect-community
t

Tomás Emilio Silva Ebensperger

01/18/2023, 1:17 AM
Quick question, is it possible to use to use the flow decorator for a class method? I created another decorator like inside the class as :
Copy code
def make_flow(f: Callable) -> Callable:
		@wraps(f)
		def wrapper(self, *args, **kwargs):
			return flow(log_prints=True)(f)(self, *args, **kwargs)
		return wrapper
The issue is, although i am able to run it
z

Zanie

01/18/2023, 4:48 AM
I don’t think this is supported yet, but if there’s not an issue feel free to open one. I’m not sure how complicated this would be to add support for.
4 Views