Skip to content

Commit

Permalink
Document SurveyCancellerSupervisor's behaviour
Browse files Browse the repository at this point in the history
See #2337
  • Loading branch information
matiasgarciaisaia committed May 9, 2024
1 parent e46eb19 commit c96c29b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/ask/runtime/survey_canceller_supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit c96c29b

Please sign in to comment.