1 | export async function main( |
2 | path: string, |
3 | is_flow: boolean, |
4 | schedule_path: string, |
5 | error: object, |
6 | error_started_at: string, |
7 | success_times: number, |
8 | success_result: object, |
9 | success_started_at: string |
10 | ) { |
11 | console.log( |
12 | `Schedule ${schedule_path} recovered ${ |
13 | success_times > 1 ? success_times + " times in a row" : "" |
14 | }\n${is_flow ? "Flow" : "Script"}: ${path}` |
15 | ); |
16 | console.log(`Last failure at ${error_started_at}:`, error); |
17 | console.log(`Last success at ${success_started_at}:`, success_result); |
18 | return error; |
19 | } |