Skip to content

Commit

Permalink
Fix CI regression, #1658 merged too soon (#1659)
Browse files Browse the repository at this point in the history
Also need to use `activity.IsActivity` outside activity specific code
  • Loading branch information
serprex authored May 1, 2024
1 parent 67d7718 commit f7c7ac2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flow/connectors/postgres/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,9 @@ func (c *PostgresConnector) GetTableSchema(
) (*protos.GetTableSchemaBatchOutput, error) {
res := make(map[string]*protos.TableSchema)
for _, tableName := range req.TableIdentifiers {
activity.RecordHeartbeat(ctx, fmt.Sprintf("fetching schema for table %s", tableName))
if activity.IsActivity(ctx) {
activity.RecordHeartbeat(ctx, "fetching schema for table "+tableName)
}
tableSchema, err := c.getTableSchemaForTable(ctx, tableName, req.System)
if err != nil {
return nil, err
Expand Down

0 comments on commit f7c7ac2

Please sign in to comment.