View Source ecrn_cron_sup (erlcron v1.2.1)

Simple one for one supervisor for ecd_chron jobs.

Link to this section Summary

Functions

Add a cron job to be supervised
Add a cron job to be supervised
Get a list of all active jobs
Terminate a job

Link to this section Functions

-spec add_job(erlcron:job_ref(), erlcron:job()) -> erlcron:job_ref().
Add a cron job to be supervised
Link to this function

add_job(JobRef, Job, CronOpts)

View Source
-spec add_job(erlcron:job_ref(), erlcron:job(), erlcron:cron_opts()) ->
           erlcron:job_ref() | ignored | already_started | {error, term()}.
Add a cron job to be supervised
-spec all_jobs() -> [pid()].
Get a list of all active jobs
-spec start_link() -> {ok, pid()} | ignore | {error, Error :: term()}.
Terminate a job