Skip to content

Commit

Permalink
couple more alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
Amogh-Bharadwaj committed Dec 28, 2023
1 parent a1896a8 commit ef6d01e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flow/activities/flowable.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ func (a *FlowableActivity) CreateRawTable(

res, err := dstConn.CreateRawTable(config)
if err != nil {
a.Alerter.LogFlowError(ctx, config.FlowJobName, err)
return nil, err
}
err = monitoring.InitializeCDCFlow(ctx, a.CatalogPool, config.FlowJobName)
Expand Down Expand Up @@ -918,6 +919,7 @@ func (a *FlowableActivity) CreateTablesFromExisting(ctx context.Context, req *pr
}
return bqConn.CreateTablesFromExisting(req)
}
a.Alerter.LogFlowError(ctx, req.FlowJobName, err)
return nil, fmt.Errorf("create tables from existing is only supported on snowflake and bigquery")
}

Expand Down

0 comments on commit ef6d01e

Please sign in to comment.