Skip to main content
Version: cicd.4.0 print this page

Schedules

Amorphic Schedule is used to create triggers for Amorphic Jobs, enabling the automation of data ingestion.

Below is the sample resource definition file for Schedule:

{
"rSchedule": {
"Type": "Schedule",
"Properties": {
"Arguments": [
{
"Key": "MaxCapacity",
"Value": 0.0625
}
],
"JobName": "job_schedule_cron",
"JobType": "etl",
"Description": "job schedule",
"Keywords": [
"Owner: syagni"
],
"Resource": {
"!Environ": "testJob.JobName"
},
"ScheduleType": "time",
"ScheduleParam": {
"ScheduleExpression": "cron(0/15 * * * ? *)"
}
}
}
}
Note: Deployment dependencies

Schedule has dependencies on Job and Tag.

Dependent resources should not be deleted before the primary resource; attempting to do so may lead to failures or inconsistencies during the deletion process.

Referencing this Resource

Below are the common keys that can be used in the DependsOn function to retrieve details of this resource.

Supported Keys

KeyDescription
ScheduleIdReturns the ScheduleId value of this resource
JobNameReturns the JobName value of this resource

For additional supported keys, refer to the API definition document for the respective resource type.

Example

To reference this schedule from another resource, use !DependsOn with logical name and property in the format <logicalResourceName>.<PropertyName>.

Example: {"!DependsOn": "rSchedule.ScheduleId"}