Skip to content

Commit

Permalink
don't discard errors, just don't retry performance jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Floppy committed Jun 27, 2024
1 parent 46229f3 commit b7db937
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions app/jobs/analysis/file_conversion_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ class NonManifoldError < StandardError

class Analysis::FileConversionJob < ApplicationJob
queue_as :performance
sidekiq_options retry: false

discard_on UnsupportedFormatError
discard_on NonManifoldError

def perform(file_id, output_format)
# Can we output this format?
Expand Down
2 changes: 1 addition & 1 deletion app/jobs/analysis/geometric_analysis_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class MeshLoadError < StandardError

class Analysis::GeometricAnalysisJob < ApplicationJob
queue_as :performance
discard_on MeshLoadError
sidekiq_options retry: false

def perform(file_id)
# Get model
Expand Down

0 comments on commit b7db937

Please sign in to comment.