Skip to content

Commit

Permalink
Fix: failed by timeout check
Browse files Browse the repository at this point in the history
  • Loading branch information
aopoltorzhicky committed Sep 15, 2022
1 parent 7052a16 commit d74e7c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/metadata/models/contract_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (contracts *Contracts) FailedByTimeout(network string, limit, offset, retry
Where("status = ?", StatusFailed).
Where("network = ?", network).
Where("retry_count = ?", retryCount).
Where("error LIKE '%%deadline%%'").
Where("error LIKE '%%Client.Timeout%%'").
Where("created_at < (extract(epoch from current_timestamp) - ?)", delay).
OrderExpr("updated_at desc")

Expand Down
2 changes: 1 addition & 1 deletion cmd/metadata/models/token_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (tokens *Tokens) FailedByTimeout(network string, limit, offset, retryCount,
Where("status = ?", StatusFailed).
Where("network = ?", network).
Where("retry_count = ?", retryCount).
Where("error LIKE '%%deadline%%'").
Where("error LIKE '%%Client.Timeout%%'").
Where("created_at < (extract(epoch from current_timestamp) - ?)", delay).
OrderExpr("updated_at desc")

Expand Down

0 comments on commit d74e7c8

Please sign in to comment.