time resource provides cron-like functionality. It is used to to trigger a job in a cron-like manner. This resource can be used used as an
IN input for any job. The timezone used for triggering jobs is UTC.
You can create a
time resource by adding it to
resources: - name: <string> type: time seed: <object>
name-- should be an easy to remember text string
type-- is set to
seed-- is an object which contains specific properties that apply to this resource
seed: interval: "*/2 * * * *"
intervalfollows the standard Cron format. For example, the snippet above will trigger the job at 2 min intervals.
Used in Jobs
This resource is used as an
IN for any type of job.
Default Environment Variables
time is used as an
OUT for a job that can execute user defined scripts, a set of environment variables are configured by the platform that may be useful to set the context before user defined scripts execute as part of the job. These variables are available when this resource is used.
<NAME> is the the friendly name of the resource.
||The name of the resource.|
||The ID of the resource.|
||The type of the resource. In this case
||The operation of the resource; either
||The directory containing files for the resource.|
||Interval defined in the seed section.|
||SourceName defined in the pointer.|
||The ID of the version of the resource being used.|
||The number of the version of the resource being used.|
Shippable Utility Functions
To make it easy to use these environment variables, the platform provides a command line utility that can be used to work with these values.
How to use these utility functions is documented here.