safe periodic job cleanup

closes FOO-1204
refs FOO-1278

(also brings in ability to use
 Delayed::RetriableError)

TEST PLAN:
  1) kill a periodic job so it is abandoned.
  2) force another abandoned job into the db with the same tag
     as the periodic cleanup job.
  3) periodic cleanup job will still run, and clear
     out it's previous phantom self.

Change-Id: Ic351e91c5c31ec503e6af218fba0543f4acd7df6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/254532
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
This commit is contained in:
Ethan Vizitei 2020-12-07 15:29:37 -06:00
parent 1b2b57312e
commit be2f6bd086
1 changed files with 4 additions and 4 deletions

View File

@ -74,12 +74,12 @@ gem 'inst_statsd', '2.1.6'
gem 'statsd-ruby', '1.4.0', require: false
gem 'aroi', '0.0.7', require: false
gem 'dogstatsd-ruby', '4.8.2'
gem 'inst-jobs', '1.0.4'
gem 'inst-jobs', '2.1.0'
gem 'fugit', '1.4.0', require: false
gem 'et-orbi', '1.2.4', require: false
gem 'inst-jobs-autoscaling', '2.0.0'
gem 'inst-jobs-autoscaling', '2.1.0'
gem 'aws-sdk-autoscaling', '1.49.0', require: false
gem 'inst-jobs-statsd', '2.0.0'
gem 'inst-jobs-statsd', '2.1.0'
gem 'json', '2.3.1'
gem 'json_schemer', '0.2.16', github: 'robotdana/json_schemer', ref: '0d2ac359a87964f74c07a14cafeb98cfcae4e29f'
gem 'json-jwt', '1.13.0', require: false
@ -120,7 +120,7 @@ gem 'guardrail', '2.0.1'
gem 'simple_oauth', '0.3.1', require: false
gem 'switchman', '2.0.2'
gem 'open4', '1.3.4', require: false
gem 'switchman-inst-jobs', '3.0.5'
gem 'switchman-inst-jobs', '3.1.0'
gem 'twilio-ruby', '5.36.0', require: false
gem 'tzinfo', '1.2.7'
gem 'vault', '0.15.0', require: false