Hi everyone! Is there a way maybe through the client from prefect import get_client to check if the ...
g
Hi everyone! Is there a way maybe through the client from prefect import get_client to check if the current run is auto scheduled or manually started or triggered by another flow?
a
Okay I’m super interested in your use case, 😅. Syntax aside what are you trying to build more broadly?
g
I would like to deny a deployment to be triggered manually mainly
a
This is a “governance” thing?
g
mmm if want to call it like that. There is just no way to set permissions because there is not authentication in Prefect self-hosted. Having the possibility to at least deny a deployment to be triggered would be a huge help
a
Gotcha gotcha. If there’s broader interest in this happy to support this more as a first class citizen, so eg the run button is disabled in the UI, etc. I’ll make a GitHub discussion. But otherwise will let others chime in on whether you can access the invocation method via get_client. thanks!
g
Thank you @Alexander Azzam !
@Alexander Azzam could you send me the github discussion url in order for me to follow please?
@Alexander Azzam, any news?