the_end v0.1.3 TheEnd.RequestDrainer
This module’s process waits pending requests to finish when terminating itself.
So, your should put this module’s spec after your Endpoint’s one and before AcceptTanceStopper’s one
children = [
# ... other specs
worker(TheEnd.RequestDrainer,
[[endpoint: MyApp.Endpoint, gatherer: TheEnd.ListenerGatherer.Plug, timeout: 10_000]])
worker(TheEnd.AcceptanceStopper,
[[endpoint: MyApp.Endpoint, gatherer: TheEnd.ListenerGatherer.Plug]])
]
Initialization:
:endpoint
- endpoint module:gatherer
- module that implements TheEnd.ListenerGatherer behaviour:timeout
- max limit of time you can wait for requests to finish (milliseconds)
See Also
Link to this section Summary
Link to this section Functions
Link to this function
init(opts)
Link to this function
start_link(opts)
Link to this function
terminate(arg1, state)