Skip to content

Commit

Permalink
Fix FetchJobUpdates log line (armadaproject#3193)
Browse files Browse the repository at this point in the history
Signed-off-by: Noah Held <[email protected]>
  • Loading branch information
zuqq authored Dec 13, 2023
1 parent fd899b2 commit 4d19adf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/scheduler/database/job_repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,9 @@ func (r *PostgresJobRepository) FetchJobUpdates(ctx *armadacontext.Context, jobS
var updatedRuns []Run = nil

start := time.Now()
defer ctx.Infof("received %d updated jobs and %d updated job runs from postgres in %s", len(updatedJobs), len(updatedRuns), time.Since(start))
defer func() {
ctx.Infof("received %d updated jobs and %d updated job runs from postgres in %s", len(updatedJobs), len(updatedRuns), time.Since(start))
}()

// Use a RepeatableRead transaction here so that we get consistency between jobs and dbRuns
err := pgx.BeginTxFunc(ctx, r.db, pgx.TxOptions{
Expand Down

0 comments on commit 4d19adf

Please sign in to comment.