We can make the execution context metadata available through a context object.
Example:
import pandas as pd
from kestra import context
mylabels = context.labels
myinputs = context.inputs
myvars = context.vars
start_date = context.trigger.startDate
csv_path = context.outputs.prev_task.uri # outputs from previous tasks
df = pd.read_csv("csv_path")
We can make the execution context metadata available through a
contextobject.Example: