by hugo697 ยท 9/6/2024
1
export async function main(
2
path: string, // The path of the script or flow
3
is_flow: boolean, // Whether the runnable is a flow
4
schedule_path: string, // The path of the schedule
5
success_result: object, // The result of the latest successful job
6
success_started_at: string // The start datetime of the latest successful job
7
) {
8
console.log(
9
`Schedule ${schedule_path} was successful\n${is_flow ? "Flow" : "Script"}: ${path}`
10
);
11
console.log(`Started at ${success_started_at}:`, success_result);
12
return success_result;
13
}