Is there any updates on how can we define a task i...
# flyte-support
c
Is there any updates on how can we define a task inside a method or in a class? PS. new to family. All the leads are highly appreciated. Thanks in advance!
a
t
I think there is a way, but it may take a bit of work on your part
the @workflow decorator turns a function into an object, so it shouldn’t be too different - having tasks declared in a workflow function vs having tasks declared in a class.
c
@average-finland-92144 Hi, so the idea is to have dynamic parametric values that are defined in the task. I have to initialize them on run time. Can we do that some how?
Hi @thankful-minister-83577, thanks for the information. I will go through them!