Skip to content

Instantly share code, notes, and snippets.

@kbaum
Created July 9, 2013 13:50
module Jobs
class DashboardQueriesJob
include Sidekiq::Worker
sidekiq_options :queue => :critical
def perform(params)
[
:top_traffic_sources,
:top_prospects_as_json,
:top_spaces_as_json,
:day_of_week_comparison,
:views_today,
:time_breakdown,
:building_breakdown,
:rsf_breakdown,
:top_firms].each do |query|
Jobs::DashboardQueryJob.perform_async params, query
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment