View Source Glific.Flows.Periodic (Glific v5.1.6)

A central place to define and execute all periodic flows. The current periodic flows in priority order are:

Monthly, Weekly, Daily A specific weekday (i.e - Monday, Tuesday, ..) OutOfOffice

All these flows are shortcode driven for now.

At some point, we will make this flexible and let the NGO define the periodic interval

Link to this section Summary

Functions

Run all the periodic flows in priority order. Stop when we find the first one that we can execute

Link to this section Functions

Link to this function

run_flows(state, message)

View Source
@spec run_flows(map(), Glific.Messages.Message.t()) :: map()

Run all the periodic flows in priority order. Stop when we find the first one that we can execute