https://flyte.org logo
#ask-the-community
Title
# ask-the-community
m

Mick Jermsurawong

04/03/2024, 9:22 PM
is there a standard pattern to binding @dynamic or @task to an instance? i want to do such that i have :
Copy code
class Foo:
   path: str
      
@task
def foo(self):
   load(self.path)
If i define my own TaskResolver, such that i override load_task by making sure i initialize it first and call it with the received args, would this work?
k

Ketan (kumare3)

04/04/2024, 2:17 PM
Yes you want to make a class task of sorts right? You can write a custom resolver