can transcribe in the ui
Some checks failed
CI/CD Pipeline / build (push) Failing after 4s

This commit is contained in:
2026-03-20 14:49:59 -06:00
parent 85eb8bcefa
commit 6fc4a686f8
13 changed files with 587 additions and 4 deletions

View File

@@ -0,0 +1,20 @@
defmodule ElixirAi.AudioProcessingPG do
@moduledoc """
Named :pg scope for tracking audio transcription workers across the cluster.
Workers join two groups:
- :all — always a member while alive (used for pool-size accounting)
- :available — member only while idle (used for dispatch; left while processing)
:pg automatically removes dead processes, so no manual cleanup is needed.
"""
def child_spec(_opts) do
%{
id: __MODULE__,
start: {:pg, :start_link, [__MODULE__]},
type: :worker,
restart: :permanent
}
end
end