edeliver_fork v1.4.5 Edeliver.Relup.Instructions.ResumeRanchAcceptors
This upgrade instruction resumes the ranch acceptors
which were suspended by the
Edeliver.Relup.Instructions.SuspendRanchAcceptors
instruction at the beginning of the upgrade. Because real suspending of ranch acceptors is not possible because ranch acceptors do not handle sys messages, they were actually terminated and are restarted by this relup instruction.
Summary
Functions
Returns name of the application
Calls the run/1
function of this module
This module requires the Edeliver.Relup.Instructions.CheckRanchAcceptors
module
Resumes the ranch acceptor supervisor and restarts all ranch acceptors
Functions
Specs
arguments(%Edeliver.Relup.Instructions{changed_modules: term, down_instructions: term, down_version: term, up_instructions: term, up_version: term}, Edeliver.Relup.Config.t) :: term
Returns name of the application.
This name is taken as argument for the run/1
function and is required
to access the acceptor processes through the supervision tree
Specs
call_this(arguments :: [term]) ::
Instruction.instruction |
Instruction.instructions
Calls the run/1
function of this module
from the relup file during hot code upgrade
Specs
dependencies :: [instruction_module :: atom]
dependencies :: [Edeliver.Relup.Instructions.CheckRanchAcceptors]
This module requires the Edeliver.Relup.Instructions.CheckRanchAcceptors
module
which must be loaded before this instruction for upgrades and unload after this instruction for downgrades.