bright-iron-31617
06/04/2024, 1:24 AMMETAFLOW_ARGO_WORKFLOWS_CREATE_NOTIFY_PAGER_DUTY_INTEGRATION_KEY and METAFLOW_ARGO_WORKFLOWS_CREATE_NOTIFY_SLACK_WEBHOOK_URL mentioned in these releases. However, I couldn't find any references to these variables in the Metaflow repository. Could you please provide more details or documentation on how to use these variables in our workflows?
Specifically, I would like to understand:
• How to configure these environment variables.
• How these variables integrate with Metaflow and Argo Workflows.
• Any examples or best practices for setting up notifications using these variables.
Any help or guidance would be greatly appreciated.
Thank you!square-wire-39606
06/05/2024, 2:05 AMbright-iron-31617
06/06/2024, 2:45 AMancient-application-36103
06/06/2024, 2:49 AMbright-iron-31617
06/06/2024, 2:55 AMpython flow.py --package-suffixes=.json,.txt,.sql --environment=pypi argo-workflows create --notify-on-error and I set up the env variables in our packages, this is added in the mfextinit_{company_name}.py
# Alerts Set Up
METAFLOW_ARGO_WORKFLOWS_CREATE_NOTIFY_PAGER_DUTY_INTEGRATION_KEY = cia_config.PAGERDUTY_INTERGRATION_KEY
METAFLOW_ARGO_WORKFLOWS_CREATE_NOTIFY_SLACK_WEBHOOK_URL = cia_config.SLACK_WEBHOOK_URL
And the error I found was
Flow failed:
Notifications require specifying an incoming Slack webhook url via --notify-slack-webhook-url or PagerDuty events v2 integration key via --notify-pager-duty-integration-key.
If you would like to set up notifications for your Slack workspace, follow the instructions at <https://api.slack.com/messaging/webhooks> to generate a webhook url.
For notifications through PagerDuty, generate an integration key by following the instructions at <https://support.pagerduty.com/docs/services-and-integrations#create-a-generic-events-api-integration>
Thanks!ancient-application-36103
06/06/2024, 2:57 AMmfextinit_{company_name}.py get to the environment?ancient-application-36103
06/06/2024, 2:57 AMMETAFLOW_ARGO_WORKFLOWS_CREATE_NOTIFY_PAGER_DUTY_INTEGRATION_KEY=foo python flow.py --package-suffixes=.json,.txt,.sql --environment=pypi argo-workflows create --notify-on-error
works?bright-iron-31617
06/07/2024, 4:17 AMsquare-wire-39606
06/07/2024, 3:36 PMbright-iron-31617
06/17/2024, 8:00 AMancient-application-36103
06/17/2024, 3:49 PMbright-iron-31617
06/18/2024, 5:56 AM