Created
February 22, 2021 13:40
-
-
Save martincabrera/bd98684669a05f605bd87b6b8a2c977b to your computer and use it in GitHub Desktop.
Poolboy configuration in application.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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