Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Commit

Permalink
Revert "Catch ActiveRecord::ActiveRecordError in job retry"
Browse files Browse the repository at this point in the history
This reverts commit 9232e24.
  • Loading branch information
dprince committed Aug 15, 2013
1 parent bc9be11 commit 14202c5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/models/job_puppet_cloudcue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def self.perform(id)
job=JobPuppetCloudcue.find(id)
JobPuppetCloudcue.run_job(job, "puppet_runner.sh.erb")
break
rescue ActiveRecord::ActiveRecordError
rescue ActiveRecord::RecordNotFound
sleep 5
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/models/job_puppet_libvirt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def self.perform(id)
job=JobPuppetLibvirt.find(id)
JobPuppetLibvirt.run_job(job, "puppet_runner.sh.erb")
break
rescue ActiveRecord::ActiveRecordError
rescue ActiveRecord::RecordNotFound
sleep 5
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/models/job_puppet_xen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def self.perform(id)
job=JobPuppetXen.find(id)
JobPuppetXen.run_job(job, "puppet_xen_runner.sh.erb")
break
rescue ActiveRecord::ActiveRecordError
rescue ActiveRecord::RecordNotFound
sleep 5
end
end
Expand Down
2 changes: 1 addition & 1 deletion app/models/job_unit_tester.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def self.perform(id)
job=JobUnitTester.find(id)
JobUnitTester.run_job(job, "unittest_runner.sh.erb")
break
rescue ActiveRecord::ActiveRecordError
rescue ActiveRecord::RecordNotFound
sleep 5
end
end
Expand Down

0 comments on commit 14202c5

Please sign in to comment.