lib/wcc/contentful/sync_engine.rb in wcc-contentful-1.4.0.rc3 vs lib/wcc/contentful/sync_engine.rb in wcc-contentful-1.4.0
- old
+ new
@@ -136,10 +136,11 @@
# Define the job only if rails is loaded
if defined?(ActiveJob)
# This job uses the Contentful Sync API to update the configured store with
# the latest data from Contentful.
class Job < ActiveJob::Base
- self.queue_adapter ||= :async
+ # This should always be "async", because the configured store could be an in-memory store.
+ self.queue_adapter = :async
queue_as :default
def configuration
@configuration ||= WCC::Contentful.configuration
end