ecrn_cron_sup (erlcron v1.3.7)
Simple-one-for-one supervisor that owns all running cron job processes.
Each call to add_job/3 starts one ecrn_agent child under this
supervisor. Jobs are transient: a job that finishes normally (e.g. a
once job after it has run) is not restarted. A job that crashes
unexpectedly is restarted up to the intensity limit configured by the
sup_job_intensity and sup_job_period application environment
variables (defaults: 3 restarts in 10 seconds).
Summary
Functions
Add a cron job under supervision (using default cron options).
Add a cron job under supervision (using default cron options).
Add a cron job under supervision with the given options.
Return PIDs of all currently supervised job processes.
Terminate the job process identified by Pid.
Functions
-spec add_job(map()) -> erlcron:job_ref().
Add a cron job under supervision (using default cron options).
-spec add_job(erlcron:job_ref(), erlcron:job()) -> erlcron:job_ref().
Add a cron job under supervision (using default cron options).
-spec add_job(erlcron:job_ref(), erlcron:job(), erlcron:cron_opts()) -> erlcron:job_ref() | ignored | already_started | {error, term()}.
Add a cron job under supervision with the given options.
Job-level options in Job (when it is a map or tuple-with-opts) are
merged with CronOpts, with job-level options taking precedence.
Returns ignored when the job is excluded by hostname restrictions.
-spec all_jobs() -> [pid()].
Return PIDs of all currently supervised job processes.
Terminate the job process identified by Pid.