Skip to content

Instantly share code, notes, and snippets.

@martincabrera
Created February 22, 2021 13:40
Show Gist options
  • Save martincabrera/bd98684669a05f605bd87b6b8a2c977b to your computer and use it in GitHub Desktop.
Save martincabrera/bd98684669a05f605bd87b6b8a2c977b to your computer and use it in GitHub Desktop.
Poolboy configuration in application.ex
# Define workers and child supervisors to be supervised
children = [
# Poolboy python initialization
:poolboy.child_spec(:worker, python_poolboy_config())
]
defp python_poolboy_config do
[
{:name, {:local, :worker}},
{:worker_module, Monocle.AutoStacking.PythonWorker},
{:size, python_workers()},
{:max_overflow, 0}
]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment