Nandakumar Raghu07/06/2023, 2:07 PM
for this I am getting an EXECUTIONPARAMS not available in current context error. I also tried current_context().execution.parameters.execution_id.url I get the same error but for EXECUTION. I am doing this in a task and according to the docs ExecutionParams object is available to all tasks. Am I missing something? Is there any other way to get the execution URL in the code? Error verbatim : EXECUTION not available as a parameter in Flyte context - are you in right task-type?
Jay Ganbat07/06/2023, 6:06 PM
So this will return the execution_id and we construct the URL from it since base url is predefined already
ctx = FlyteContext.current_context() workflow_execution_id: WorkflowExecutionIdentifier = ( ctx.user_space_params.execution_id )
Nandakumar Raghu07/06/2023, 7:09 PM
Jay Ganbat07/06/2023, 7:12 PM