Executes a job on a schedule. Does not rely on any kind of external trigger.
type = "cron" schemaVersion = 1 evmChainID = 1 schedule = "CRON_TZ=UTC * */20 * * * *" externalJobID = "0EEC7E1D-D0D2-476C-A1A8-72DFB6633F01" observationSource = """ fetch [type="http" method=GET url="https://chain.link/ETH-USD"] parse [type="jsonparse" path="data,price"] multiply [type="multiply" times=100] fetch -> parse -> multiply """
See shared fields.
schedule: the frequency with which the job is to be run. There are two ways to specify this:
CRON_TZ=...parameter if you use this format.
@every 1h. This shorthand does not take account of the node's timezone, rather, it simply begins counting down the moment that the job is added to the node (or the node is rebooted). As such, no
CRON_TZparameter is needed.
For all supported schedules, please refer to the cron library documentation.
Job type specific pipeline variables
$(jobSpec.databaseID): the ID of the job spec in the local database. You shouldn't need this in 99% of cases.
$(jobSpec.externalJobID): the globally-unique job ID for this job. Used to coordinate between node operators in certain cases.
$(jobSpec.name): the local name of the job.
$(jobRun.meta): a map of metadata that can be sent to a bridge, etc.