-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
huboard-web/app/jobs/cached_job.rb
Lines 1 to 16 in 61e1d29
| class CachedJob < ActiveJob::Base | |
| def perform(params) | |
| Rails.cache.with do |dalli| | |
| uuid = SecureRandom.uuid | |
| if params[:cache_key] && !dalli.get(params[:cache_key]) | |
| dalli.set(params[:cache_key], uuid) | |
| end | |
| if dalli.get(params[:cache_key]) === uuid | |
| message = deliver params | |
| return if params[:suppress] | |
| PublishWebhookJob.perform_later message if params[:webhook_publishable] | |
| end | |
| end | |
| end |
Please open new issues for HuBoard here
contact support@huboard.com for personal support on critical issues
Metadata
Metadata
Assignees
Labels
No labels