Hi there ! I'd like to use `prefect.utilities.noti...
# ask-community
v
Hi there ! I'd like to use
prefect.utilities.notifications.slack_notifier
behind a proxy. A search in the docs and in the slack community give nothing so before submitting a new issue I wanted to check if I was not missing something ! 🙂 Thanks
k
It shouldn't really matter right? It's an outgoing connection from your scheduler to Slack's servers
v
My scheduler is also behind the proxy so I guess I do need to pass proxy information to the post request ?
I have prefect server running on the same machine as my flows
k
oh so you need a proxy for outbound connections?
it looks to me like the notification handler makes a call using requests.post and there is no proxy hook, unless you can integrate this in the webhook url somehow
I am guessing it wont be hard to plugin your own to be honest
k
Hi @Vincent ChĂ©ry! Thanks for checking in here before opening an issue. Thanks for chiming in @Kostas Chalikias. I understand the need here. You can open an issue, but I honestly can’t guarantee that team will choose to work on it.
v
Thanks both. I will open the issue then 😉
<http://requests.post|requests.post>
accepts a
proxy
argument, so it looks pretty simple to add a keyword argument to
prefect.utilities.notifications.slack_notifier
and pass it to
<http://requests.post|requests.post>
. I might spend some time to draft a PR for it.
🙌 1
đŸ§‘â€đŸ’» 1