You probably want a more complex scheduler for this. Eg. Oban or Quantum.
If you don’t want something so heavyweight, you can just create a sampling genserver and in the init use :timer.send_interval/2 timer — OTP 29.0.2 (stdlib 8.0.1)
How do I make it possible for the supervision tree to treat both of these processess together as a “single process” that can be shut down together?
change the strategy from :one_for_one to :one_for_all. Or maybe :rest_for_all.


















