vura.async.scheduler

*scheduler-exception-fn*

dynamic

DispatcherActions

protocol

members

disable-dispatcher

(disable-dispatcher this)
Function disables dispatcher, stopping it from executing permenantly. Eaven if start-dispatching! is ran.

start-dispatching!

(start-dispatching! this)
Function activates dispatcher. Returns true if successfull or false if not.

stop-dispatching!

(stop-dispatching! this)
Function deactivates dispatcher. Always returns true

job-candidates?

(job-candidates? schedule)

make-schedule

(make-schedule)(make-schedule & jobs)
Functions returns reify instance. Jobs
are supposed to be argument of 3ies.

job-name, job , CRON-schedule

ScheduleActions

protocol

members

add-job

(add-job this job-name job schedule)
Function adds Job. to this schedule

remove-job

(remove-job this job-name)
Function removes Job. form this schedule

replace-job

(replace-job this job-name new-job schedule)
Function replaces Job. to this schedule

reschedule-job

(reschedule-job this job-name schedule)
Function reschedules Job. with new schedule

ScheduleInfo

protocol

members

get-job

(get-job this job-name)
Returns Job. instance of job-name

get-jobs

(get-jobs this)
Get all scheduled jobs names

get-schedule

(get-schedule this job-name)
Returns CRON string for given job-name

get-schedules

(get-schedules this)
List CRON schedules

stale-jobs?

(stale-jobs? schedule)

wake-up-at?

(wake-up-at? schedule)