Skip to content

prefect_sns.flows

This is an example flows module

Classes

Functions

hello_and_goodbye

Sample flow that says hello and goodbye!

Source code in prefect_sns/flows.py
 8
 9
10
11
12
13
14
15
16
17
18
19
@flow
def hello_and_goodbye():
    """
    Sample flow that says hello and goodbye!
    """
    SnsBlock.seed_value_for_example()
    block = SnsBlock.load("sample-block")

    print(hello_prefect_sns())
    print(f"The block's value: {block.sns_arn}")
    print(goodbye_prefect_sns())
    return "Done"