Skip to content

Commit

Permalink
temporarily allowing us to force job to create data for review app
Browse files Browse the repository at this point in the history
  • Loading branch information
elceebee committed Sep 24, 2024
1 parent 02de77c commit d2ca482
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ class SyncAllProvidersAndCoursesWorker

sidekiq_options retry: 3, queue: :low_priority

def perform(incremental = true, year = nil, suppress_sync_update_errors = false)
return if HostingEnvironment.review?
def perform(incremental = true, year = nil, suppress_sync_update_errors = false, force: false)
# Temporarily allowing us to force this job to create data for a review app.
return if HostingEnvironment.review? && !force

year ||= year_to_sync

Expand Down

0 comments on commit d2ca482

Please sign in to comment.