View Source Bildad.Job.JobKiller (Bildad v0.1.6)
The JobKiller module is responsible for killing jobs that have run too long.
Summary
Functions
Returns a specification to start this module under a supervisor.
Checks for jobs that need to be killed ON THIS NODE and tries to kill them.
Starts the JobKiller task with the provided options. This task should be run on each node.
Functions
Returns a specification to start this module under a supervisor.
arg
is passed as the argument to Task.start_link/1
in the :start
field
of the spec.
For more information, see the Supervisor
module,
the Supervisor.child_spec/2
function and the Supervisor.child_spec/0
type.
Checks for jobs that need to be killed ON THIS NODE and tries to kill them.
Starts the JobKiller task with the provided options. This task should be run on each node.
The repo is required and is the database repository to use for job management. The check time is the number of seconds between checks for jobs to kill. It is OPTIONAL and defaults to 60 seconds.