1 | |
2 |
|
3 | export async function main( |
4 | workspace_id: string, |
5 | job_id: string, |
6 | path: string, |
7 | is_flow: boolean, |
8 | error: object, |
9 | started_at: string, |
10 | trigger_path: string |
11 | ) { |
12 | const triggerType = trigger_path.split("/")[0]; |
13 | const triggerPath = trigger_path.replace(triggerType + "/", ""); |
14 | console.log(`${triggerType} ${triggerPath} failed\n${is_flow ? "Flow" : "Script"}: ${path}`); |
15 | console.log(`Failed job started at ${started_at}:`, error); |
16 | return error; |
17 | } |
18 |
|