Skip to content

Commit

Permalink
better logging
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Feb 16, 2024
1 parent 5c0e87e commit 269c6a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion e2e_cleanup/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/PeerDB-io/peer-flow-cleanup

go 1.21.6
go 1.22.0

require (
cloud.google.com/go/bigquery v1.59.1
Expand Down
1 change: 1 addition & 0 deletions e2e_cleanup/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func CleanupBQ(ctx context.Context) {
if err != nil {
panic(err)
}
fmt.Printf("? %s\n", ds.DatasetID)
if meta.CreationTime.Before(time.Now().AddDate(0, 0, -17)) {
fmt.Printf("Deleting %s\n", ds.DatasetID)
if err := ds.DeleteWithContents(ctx); err != nil {
Expand Down

0 comments on commit 269c6a8

Please sign in to comment.