Cronex v0.4.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
Creates a %Job{} with the given arguments
Creates a %Job{} with the given interval, frequency, time and task
Runs and updates the pid attribute of a given %Job{}
Validates a given %Job{}
Functions
Creates a %Job{} with a given frequency and task.
Check Cronex.Every.every/3 documentation, to view the accepted frequency arguments.
Creates a %Job{} with the given arguments.
Different argument data types combinations are accepted:
When
arg1is an atom andarg2is a string, they represent thefrequencyandtimerespectively.When
arg1is an integer andarg2is an atom, they represent theintervalandfrequencyrespectively.
Check Cronex.Every.every/3 documentation, to view the accepted frequency and time arguments.
Creates a %Job{} with the given interval, frequency, time and task.
Check Cronex.Every.every/4 documentation, to view the accepted interval, frequency and time arguments.