feat: more clear definition and first base implementation for lua
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
14
lib/bds/scripting/job_supervisor.ex
Normal file
14
lib/bds/scripting/job_supervisor.ex
Normal file
@@ -0,0 +1,14 @@
|
||||
defmodule BDS.Scripting.JobSupervisor do
|
||||
@moduledoc false
|
||||
|
||||
use DynamicSupervisor
|
||||
|
||||
def start_link(_opts) do
|
||||
DynamicSupervisor.start_link(__MODULE__, :ok, name: __MODULE__)
|
||||
end
|
||||
|
||||
@impl true
|
||||
def init(:ok) do
|
||||
DynamicSupervisor.init(strategy: :one_for_one)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user