@@ -30,11 +30,12 @@ func (pge *PgEngine) IsAlive() bool {
30
30
// LogTaskExecution will log current chain element execution status including retcode
31
31
func (pge * PgEngine ) LogTaskExecution (ctx context.Context , task * ChainTask , retCode int , output string ) {
32
32
_ , err := pge .ConfigDb .Exec (ctx , `INSERT INTO timetable.execution_log (
33
- chain_id, task_id, command, kind, last_run, finished, returncode, pid, output, client_name, txid)
34
- VALUES ($1, $2, $3, $4, clock_timestamp() - $5 :: interval, clock_timestamp(), $6, $7, NULLIF($8, ''), $9, $10)` ,
33
+ chain_id, task_id, command, kind, last_run, finished, returncode, pid, output, client_name, txid, ignore_error )
34
+ VALUES ($1, $2, $3, $4, clock_timestamp() - $5 :: interval, clock_timestamp(), $6, $7, NULLIF($8, ''), $9, $10, $11 )` ,
35
35
task .ChainID , task .TaskID , task .Script , task .Kind ,
36
36
fmt .Sprintf ("%f seconds" , float64 (task .Duration )/ 1000000 ),
37
- retCode , pge .Getsid (), strings .TrimSpace (output ), pge .ClientName , task .Txid )
37
+ retCode , pge .Getsid (), strings .TrimSpace (output ), pge .ClientName , task .Txid ,
38
+ task .IgnoreError )
38
39
if err != nil {
39
40
pge .l .WithError (err ).Error ("Failed to log chain element execution status" )
40
41
}
0 commit comments