Durable.DSL.TimeHelpers (Durable v2.0.2)
View SourceHelper functions for expressing time durations in workflow definitions.
Examples
workflow "process_order", timeout: hours(2) do
step :wait_for_confirmation, fn order ->
sleep(minutes(30))
{:ok, order}
end
end
Summary
Functions
Converts days to milliseconds.
Converts hours to milliseconds.
Converts minutes to milliseconds.
Converts seconds to milliseconds.