Skip to content

Notify Default

NotifyDefault is the default notify provider. It does nothing — no notifications are sent after task execution.

This is the provider used when no notify is explicitly configured in Config.

Example

from dotflow import Config, DotFlow, action
from dotflow.providers import NotifyDefault


@action
def task():
    return {"notify": True}


def main():
    workflow = DotFlow(config=Config(notify=NotifyDefault()))
    workflow.task.add(step=task)

    return workflow


if __name__ == "__main__":
    main()

References