Skip to content

Commit

Permalink
Add check for existence in status.json
Browse files Browse the repository at this point in the history
  • Loading branch information
cschwinderg committed Jan 13, 2025
1 parent 632d2bd commit 16d65be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions etl/app/server/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ async function cacheProfileStats(pool, schemaName, profileStats, s3Stats) {
const s3Metadata = s3Stats.files.find(
(f) => extractProfileName(f.name) === profileName,
);
if (!s3Metadata) continue;

await client.query(
'INSERT INTO logging.mv_profile_stats(profile_name, schema_name, num_rows, last_refresh_end_time, last_refresh_elapsed, csv_size, gz_size, zip_size, creation_date)' +
Expand Down

0 comments on commit 16d65be

Please sign in to comment.