gorgeous-beach-23305
07/06/2023, 2:07 PMcurrent_context().ExecutionParameters().execution_id.url
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?magnificent-teacher-86590
07/06/2023, 6:06 PMctx = FlyteContext.current_context()
workflow_execution_id: WorkflowExecutionIdentifier = (
ctx.user_space_params.execution_id
)
So this will return the execution_id
and we construct the URL from it since base url is predefined alreadygorgeous-beach-23305
07/06/2023, 7:09 PMmagnificent-teacher-86590
07/06/2023, 7:12 PM