Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider integrating Apprise for notification support #1295

Closed
jlowin opened this issue Aug 3, 2019 · 3 comments
Closed

Consider integrating Apprise for notification support #1295

jlowin opened this issue Aug 3, 2019 · 3 comments
Labels
enhancement An improvement of an existing feature feature A new feature

Comments

@jlowin
Copy link
Member

jlowin commented Aug 3, 2019

Apprise is a lightweight notification service for Python with many integrations.

A notification task could look as simple as this, while still enabling users to send messages to almost 50 different network (including Slack, email, Twitter, SMS, and arbitrary JSON payloads).

@task
def notify(url, title, body):
    # NOT TESTED
	a = Apprise()
    a.add(url)
    a.notify(title, body)

Because (I believe) Apprise embeds auth in the URL, this would be as easy as returning the URL from an appropriately-configured task OR allowing users to set it via secret.

Bonus points for embedding this in a state handler...

@jlowin jlowin added enhancement An improvement of an existing feature feature A new feature labels Aug 3, 2019
@jlowin
Copy link
Member Author

jlowin commented Aug 3, 2019

Slack support appears to be based on deprecated webhooks, not apps, though...

@caronc
Copy link

caronc commented Aug 10, 2019

@jlowin Hi, i stumbled across this ticket just searching GitHub to see who was using Apprise. The good news is Apprise also supports Slack apps; but the documentation didn't reflect this.

Upon seeing your post, I've since updated it.

Hopefully that helps; let me know if you have any questions!

@jlowin
Copy link
Member Author

jlowin commented Aug 10, 2019

@caronc awesome! Thanks for the update, I'm excited to work out a first-class Apprise integration for Prefect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement of an existing feature feature A new feature
Projects
None yet
Development

No branches or pull requests

2 participants