Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
justlorain committed Apr 2, 2024
1 parent 3b13ca1 commit 9af7c22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cron/cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ func StartCron(ctx context.Context, c *cron.Cron, errC chan error) {
if i == config.GlobalConfig.Backend.Retry {
errC <- ErrReachedRetryTimes
}
// TODO: optimize transaction handling
tx := storage.DB.Begin()
err := UpdateTask(ctx, tx)
if err == nil {
// TODO: merge to one transaction
tx.Commit()
j := 0
for {
Expand Down

0 comments on commit 9af7c22

Please sign in to comment.