Without seeing the start_link signature nor the Dynamic sup code, I imagine that you’re trying to pass a keyword list as the sole argument to the function, if so you need to wrap it in an additional [ ... ] otherwise, since keyword lists are themselves lists of the form [{…, …}, {…, …}, …] it gets interpreted as 2 arguments, {:clearance_id, "clearance_id"} and {:status, "status"}.
hey there,
This is the start_link of the worker:
def start_link([clearance_id: clearance_id, status: status]) do
GenServer.start_link(MODULE, [clearance_id: clearance_id, status: status],
name: String.to_atom(clearance_id)
)
end