Tom Forbes
06/15/2021, 2:54 PMResult
class/instance for a given task within the task itself?Kevin Kho
class MyTask(Task):
, just self.result
might work.Tom Forbes
06/15/2021, 3:45 PM@task
. Is there no way to reference the current task in the context?Tom Forbes
06/15/2021, 3:46 PMKevin Kho
Tom Forbes
06/15/2021, 3:51 PM@task
def task():
result = get_result_class_somehow()
do_stuff(result.location)
return result
https://github.com/PrefectHQ/prefect/discussions/4597Tom Forbes
06/15/2021, 3:51 PM