Skip to content

Commit

Permalink
chore: Add start job log
Browse files Browse the repository at this point in the history
  • Loading branch information
winebarrel committed Oct 15, 2024
1 parent 8766569 commit 5642a50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ func (w *Worker) WorkOne() (didWork bool) {
if j == nil {
return // no job was available
}
log.Printf("event=start_job job_id=%d job_type=%s", j.ID, j.Type)
j.tx, err = j.c.pool.Begin()
if err != nil {
log.Printf("failed to create transaction: %v", err)
Expand Down

0 comments on commit 5642a50

Please sign in to comment.