Adrian Schweizer
03/23/2022, 9:36 PMexport default class CronStack extends sst.Stack {
constructor(scope, id, props) {
super(scope, id, props);
const { tableNames } = props;
new sst.Cron(this, "ReminderMail", {
schedule: "rate(1 minute)",
job: "src/participations/mailReminder.main",
jobProps: {
environment: {
...tableNames,
// more env vars
},
},
});
}
}
Ross Coundon
03/23/2022, 9:38 PMFrank
new sst.Cron(this, "ReminderMail", {
schedule: "rate(1 minute)",
job: {
function: {
handler: "src/participations/mailReminder.main",
environment: {
...tableNames,
},
},
});
Adrian Schweizer
03/23/2022, 9:39 PMAdrian Schweizer
03/23/2022, 9:42 PMAdrian Schweizer
03/23/2022, 9:43 PMAdrian Schweizer
03/23/2022, 9:44 PM_Type_ : FunctionDefinition | CronJobProps
really means