PhoenixKit.Jobs.Kinds (phoenix_kit v2.55.1)

Copy Markdown View Source

The registry of job kinds: the modules the enabled PhoenixKit.Modules declare (job_kinds/0) and those a host lists under config :phoenix_kit, job_kinds: [...]. A kind is looked up by the name stored on a run.

Summary

Functions

Every kind module known now.

The kind module of run.

The kind module named kind, or nil (its module is disabled or gone).

Functions

all()

@spec all() :: [module()]

Every kind module known now.

for_run(map)

@spec for_run(PhoenixKit.Jobs.Run.t()) :: module() | nil

The kind module of run.

get(kind)

@spec get(String.t() | nil) :: module() | nil

The kind module named kind, or nil (its module is disabled or gone).