Kitto v0.9.1 Kitto.Runner View Source

Module responsible for loading job files

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Returns all the registered jobs

Returns the directory where the job scripts are located

Updates the list of jobs to be run with the provided one

Reloads all jobs defined in the given file

Starts the runner supervision tree

Stops all jobs defined in the given file

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function jobs(server) View Source
jobs(pid | atom) :: [map]

Returns all the registered jobs

Returns the directory where the job scripts are located

Link to this function register(server, job) View Source
register(pid | atom, map) :: :ok
register(pid | atom, map) :: map

Updates the list of jobs to be run with the provided one

Link to this function reload_job(server, file) View Source

Reloads all jobs defined in the given file

Starts the runner supervision tree

Link to this function stop_job(server, file) View Source
stop_job(pid | atom, String.t) :: :ok

Stops all jobs defined in the given file