Sean Talia
04/30/2021, 4:03 PMPrefectSecret to add a new item to the prefect.context? I see that you can add to the global context by doing something like:
with prefect.context(key='abc'):
flow.run()
but it's not clear to me how to actually supply this value to the runtime context when my agents are deploying the flows and I'm not explicitly calling flow.run(). For context, I'm reading through the documentation on adding Slack handlers and I see that all you need to do is set a SLACK_WEBHOOK_URL secret in order for the buiilt-in slack_notifier to be able to post to your channel.Kevin Kho
Sean Talia
04/30/2021, 4:18 PMPREFECT__CONTEXT__SECRETS__SLACK_WEBHOOK_URL at runtime via a task?Sean Talia
04/30/2021, 4:19 PMKevin Kho
prefect local agent start --env var1Kevin Kho
DockerRun(env={"SOME_VAR": "value"})Kevin Kho
Sean Talia
04/30/2021, 4:24 PMvar1 stashed on the host where I'm running the agent but also 2) I'd like for different teams at my org to notify different channels as they need and I was hoping that they could make those adjustments in their flow code rather than my having to configure a pattern for agents/labels to determine thatSean Talia
04/30/2021, 4:25 PMKevin Kho
Kevin Kho
Sean Talia
04/30/2021, 4:33 PMKevin Kho
slack_notifier. Check slack_notifier in the docs . It takes in a webhook_secretSean Talia
04/30/2021, 5:46 PMSean Talia
04/30/2021, 5:51 PMSean Talia
04/30/2021, 5:51 PMSean Talia
04/30/2021, 5:51 PMKevin Kho
Sean Talia
04/30/2021, 6:34 PM