Cronex v0.2.0 Cronex.Job

This module represents a job.

Summary

Functions

Checks if a given %Job{} can run, based on it’s frequency and pid

Creates a %Job{} with a given frequency and task

Runs and updates the pid attribute of a given %Job{}

Functions

can_run(job)

Checks if a given %Job{} can run, based on it’s frequency and pid.

new(frequency, task)

Creates a %Job{} with a given frequency and task.

new(frequency, time, task)
run(job, supervisor)

Runs and updates the pid attribute of a given %Job{}.