One thing that would be helpful to pass to our age...
# ask-the-community
e
One thing that would be helpful to pass to our agent is some of the contextual Flyte information about the launching project. Looking at the agent protobuf at https://github.com/flyteorg/flyte/blob/master/flyteidl/protos/flyteidl/admin/agent.proto I'm not seeing that info. Is that something that would make sense to add @Kevin Su? (cc @Noah Jackson)
k
I do think that should be on the context
n
I haven't been able to find it on the context. For instance, in my agent if I have something like
Copy code
FlyteContextManager.current_context().execution_state.user_space_params.execution_id
I get back
<FlyteLiteral project: "local" domain: "local" name: "local">
k
no you are right, i mean we can and should add it
n
I'll take a stab at adding it, looking at adding something similar in https://github.com/flyteorg/flytekit/pull/2272
k
@Ethan Brown yes, it makes sense to add that
n
I think it is already there in task_template.id. Not sure how I missed it earlier🤦
k
haha, but that may not be the executing project and domain
not good to depend on that