95 lines
2.3 KiB
JSON
95 lines
2.3 KiB
JSON
{
|
|
"fields": {
|
|
"name": {
|
|
"type": "varchar",
|
|
"required": true,
|
|
"trim": true
|
|
},
|
|
"job": {
|
|
"type": "varchar",
|
|
"required": true,
|
|
"view": "views/scheduled-job/fields/job"
|
|
},
|
|
"status": {
|
|
"type": "enum",
|
|
"options": ["Active", "Inactive"]
|
|
},
|
|
"scheduling": {
|
|
"type": "varchar",
|
|
"required": true,
|
|
"view": "views/scheduled-job/fields/scheduling",
|
|
"tooltip": true,
|
|
"trim": true
|
|
},
|
|
"lastRun": {
|
|
"type": "datetime",
|
|
"readOnly": true
|
|
},
|
|
"createdAt": {
|
|
"type": "datetime",
|
|
"readOnly": true
|
|
},
|
|
"modifiedAt": {
|
|
"type": "datetime",
|
|
"readOnly": true
|
|
},
|
|
"createdBy": {
|
|
"type": "link",
|
|
"readOnly": true
|
|
},
|
|
"modifiedBy": {
|
|
"type": "link",
|
|
"readOnly": true
|
|
},
|
|
"isInternal": {
|
|
"type": "bool",
|
|
"readOnly": true,
|
|
"disabled": true,
|
|
"default": false
|
|
}
|
|
},
|
|
"links": {
|
|
"createdBy": {
|
|
"type": "belongsTo",
|
|
"entity": "User"
|
|
},
|
|
"modifiedBy": {
|
|
"type": "belongsTo",
|
|
"entity": "User"
|
|
},
|
|
"log": {
|
|
"type": "hasMany",
|
|
"entity": "ScheduledJobLogRecord",
|
|
"foreign": "scheduledJob"
|
|
}
|
|
},
|
|
"collection": {
|
|
"orderBy": "name",
|
|
"order": "asc"
|
|
},
|
|
"jobSchedulingMap": {
|
|
"CheckInboundEmails": "*/2 * * * *",
|
|
"CheckEmailAccounts": "*/1 * * * *",
|
|
"SendEmailReminders": "*/2 * * * *",
|
|
"Cleanup": "1 1 * * 0",
|
|
"AuthTokenControl": "*/6 * * * *",
|
|
"SendEmailNotifications": "*/2 * * * *"
|
|
},
|
|
"jobs": {
|
|
"Dummy": {
|
|
"isSystem": true,
|
|
"scheduling": "1 */12 * * *"
|
|
},
|
|
"CheckNewVersion": {
|
|
"name": "Check for New Version",
|
|
"isSystem": true,
|
|
"scheduling": "15 5 * * *"
|
|
},
|
|
"CheckNewExtensionVersion": {
|
|
"name": "Check for New Versions of Installed Extensions",
|
|
"isSystem": true,
|
|
"scheduling": "25 5 * * *"
|
|
}
|
|
}
|
|
}
|