Don't worry, the task will be done.
Based on OTP, a GenServer will try to run the task. In case of success, the GenServer will stop. In case of error, it will retry next time with a backoff.
ResilientTask
is a tiny library to make your tasks resilient.
ResilientTask is published on Hex.
The package can be installed by adding resilient_task
to your list of dependencies in mix.exs:
def deps do
[
{:resilient_task, "~> 0.1.0"}
]
end
The docs can be found at https://hexdocs.pm/resilient_task.