Class: Restaurants::RwgRestaurantGeoDataWorker
- Inherits:
-
ApplicationWorker
- Object
- ApplicationWorker
- Restaurants::RwgRestaurantGeoDataWorker
- Defined in:
- app/workers/restaurants/rwg_restaurant_geo_data_worker.rb
Constant Summary collapse
- RETRYABLE_EXCEPTIONS =
[ SocketError, Timeout::Error, Geocoder::RequestDenied, Geocoder::InvalidRequest, Geocoder::InvalidApiKey, Geocoder::ServiceUnavailable, Geocoder::OverQueryLimitError, ].freeze
Instance Method Summary collapse
Methods inherited from ApplicationWorker
Instance Method Details
#perform(restaurant_ids) ⇒ Object
12 13 14 15 16 |
# File 'app/workers/restaurants/rwg_restaurant_geo_data_worker.rb', line 12 def perform(restaurant_ids) return if restaurant_ids.empty? process_restaurant_geo_data(restaurant_ids) end |