khuyentran1401 / prefect-alert

A decorator that sends alert when a Prefect flow fails
https://khuyentran1401.github.io/prefect-alert/
Apache License 2.0
12 stars 3 forks source link

Added flow wrapper class #3

Closed khuyentran1401 closed 1 year ago

khuyentran1401 commented 1 year ago

This PR added some changes to merge the PR #2.

Closes #1

Example

@alert_on_failure(block_type=SlackWebhook, block_name="test")
@flow
def test_flow():
    print("testing")

isinstance(test_flow, Flow)
---> returns True

Checklist