Jay Ganbat
05/26/2022, 10:04 PMfrom flytekit.configuration import internal as flyte_internal
"workflow_version": flyte_internal.VERSION.get(),
this will give me the registered workflow version
but looks like the 1.0.x update removed that field, is there any other place i can get this information inside the taskKetan (kumare3)
Jay Ganbat
05/26/2022, 10:14 PMKetan (kumare3)
Jay Ganbat
05/26/2022, 10:20 PMKetan (kumare3)
Jay Ganbat
05/26/2022, 10:20 PMKetan (kumare3)
Jay Ganbat
05/26/2022, 10:36 PMhandle.write(str(current_context().attrs) + "\n")
File "/fn/lib/python3.9/site-packages/flytekit/core/context_manager.py", line 261, in __getattr__
raise AssertionError(f"{attr_name} not available as a parameter in Flyte context - are you in right task-type?")
Ketan (kumare3)
Jay Ganbat
05/26/2022, 10:45 PMcurrent_context().get("flyte_internal_task_version")
flyte_internal_task_version
flyte_task_version
task_version
version
Yee
current_context
?Jay Ganbat
05/26/2022, 11:40 PMYee
ExecutionParameters
objecttask_id
propertyJay Ganbat
05/26/2022, 11:45 PMKetan (kumare3)
Yee
Jay Ganbat
05/26/2022, 11:57 PMjeev