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
arg1
is an atom andarg2
is a string, they represent thefrequency
andtime
respectively.When
arg1
is an integer andarg2
is an atom, they represent theinterval
andfrequency
respectively.
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.