https://prefect.io logo
Title
k

kevin

02/03/2021, 10:47 PM
does a prefect task have any knowledge of what project context it's being executed in?
j

josh

02/03/2021, 10:51 PM
Hi @kevin currently no, the project is not something available in context but if you want to open an enhancement request on the repo I’m sure it’s something that could be added 🙂
k

kevin

02/03/2021, 10:52 PM
do you think it's something that should be in the context?
just being wary of context bloat
j

josh

02/03/2021, 10:52 PM
Yeah there are various other pieces of information that are populated at run time that deal with the flow run / flow and I don’t think adding project name/id would be much bloat
k

kevin

02/03/2021, 10:54 PM
word, how do i go about opening an enhancement request?
k

kevin

02/03/2021, 10:55 PM
in a similar vein, does the task have context into what flow is using it?
feels like if not i can lump them in the same enhancement request
j

josh

02/03/2021, 10:55 PM
Yep! In the link I sent above it outlines the values available in context at task run time
k

kevin

02/03/2021, 10:57 PM
oh cool, thanks!
is this a relatively trivial request in the sense that the information is available but just not immediately readable?