@ancient-wolf-19325 Is it possible to fetch the workflow execution id from a workflow or task within a workflow without using launchplans?
a
ancient-wolf-19325
08/20/2024, 12:43 AM
Yes, it is possible to fetch the workflow execution ID from within a task using
flytekit.current_context().execution_id
. However, it is not possible to fetch the execution ID directly from within a workflow.
According to this discussion, you can access the execution ID inside a task using the following code snippet: