From c96c29bd45691ead8ba8d354a6e99ada6790e0b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=ADas=20Garc=C3=ADa=20Isa=C3=ADa?= Date: Thu, 9 May 2024 15:17:47 -0300 Subject: [PATCH] Document SurveyCancellerSupervisor's behaviour See #2337 --- lib/ask/runtime/survey_canceller_supervisor.ex | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ask/runtime/survey_canceller_supervisor.ex b/lib/ask/runtime/survey_canceller_supervisor.ex index 55bafda36..41c3c2527 100644 --- a/lib/ask/runtime/survey_canceller_supervisor.ex +++ b/lib/ask/runtime/survey_canceller_supervisor.ex @@ -33,6 +33,11 @@ defmodule Ask.Runtime.SurveyCancellerSupervisor do } end + # The SurveyCancellerSupervisor makes sure every cancelling Survey + # effectively gets cancelled. Upon startup, it checks and starts a + # SurveyCanceller process for each survey pending of cancellation, and + # then it also starts new cancellers on demand when a new survey gets + # cancelled. @impl true def init(_init_arg) do processes_to_start =