You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
Describe the bug
I'm trying to set up a fal script to send a message to slack if a source fails a freshness test (using the functionality added in this PR, very exciting work btw!). I'm getting an issue with SSL sockets; details in thread. I'd appreciate any help, thanks!
Expected behavior
No warning about unclosed sockets.
Additional context
Script:
importosfromslack_sdkimportWebClientfromslack_sdk.errorsimportSlackApiErrorfromfalimportFalDbtfromfalimportDbtSourceCHANNEL_ID=os.getenv("SLACK_BOT_CHANNEL")
SLACK_TOKEN=os.getenv("SLACK_BOT_TOKEN")
client=WebClient(token=SLACK_TOKEN)
faldbt=FalDbt(project_dir='.', profiles_dir='.')
try:
sources=faldbt.list_sources()
fornodeinsources:
ifnode.freshnessandnode.freshness.status!='pass':
freshness_message_text=f"Source: {node.name}.{node.table_name}, Status: {node.freshness.status}, Owner: <@will>"print(freshness_message_text)
#response = client.chat_postMessage(# channel=CHANNEL_ID,# text=freshness_message_text#)exceptSlackApiErrorase:
# You will get a SlackApiError if "ok" is Falseasserte.response["error"]
Information being reported and updated from a thread in #tools-fal channel of dbt slack.
The text was updated successfully, but these errors were encountered:
Describe the bug
I'm trying to set up a fal script to send a message to slack if a source fails a freshness test (using the functionality added in this PR, very exciting work btw!). I'm getting an issue with SSL sockets; details in thread. I'd appreciate any help, thanks!
Your environment
How to reproduce
[TODO]
Expected behavior
No warning about unclosed sockets.
Additional context
Script:
Information being reported and updated from a thread in
#tools-fal
channel of dbt slack.The text was updated successfully, but these errors were encountered: