lib/tasque/task.rb in tasque-0.2.1 vs lib/tasque/task.rb in tasque-0.2.2

- old
+ new

@@ -74,10 +74,10 @@ after_transition on: :complete do |task| task.update_columns progress: 100, finished_at: Time.now end after_transition on: :failure do |task| - task.update_columns attempts: (task.attempts + 1), result: { error: task.error }, progress: 0 + task.update_columns attempts: (task.attempts + 1), progress: 0 end after_transition on: :reprocess do |task| task.update_columns started_at: nil, result: nil, progress: 0 end