Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[13] pry(main)> FanInfluencer.create!(fan_id: fan.id, influencer_id: influencer.id)
SQL (0.9ms) INSERT INTO "fan_influencers" ("influencer_id", "fan_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["influencer_id", 11], ["fan_id", 1001], ["created_at", "2018-08-01 15:22:57.953303"], ["updated_at", "2018-08-01 15:22:57.953303"]]
SQL (0.8ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/object:CCDeferredEnqueuer\noptions:\n :relation_class_name: Influencer\n :relation_id: 11\n :column: :fans_count\n :method: :update_fans_count\n :cache: true\n :counter: Counter::Cache::Counters::BufferCounter\ndelay_time: !ruby/object:ActiveSupport::Duration\n parts:\n :seconds: 20\n value: 20\nbase_class: FanInfluencer\nkey: cc::Influencer::11::fans_count::deferred\n"], ["run_at", "2018-08-01 15:23:17.987544"], ["created_at", "2018-08-01 15:22:57.990042"], ["updated_at", "2018-08-01 15:22:57.990042"]]
Enqueued deferred.
SQL (0.7ms) INSERT INTO "delayed_jobs" ("handler", "run_at", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["handler", "--- !ruby/object:CCRecalculationEnqueuer\noptions:\n :relation_class_name: Influencer\n :relation_id: 11\n :column: :fans_count\n :method: :update_fans_count\n :cache: false\n :counter: Counter::Cache::Counters::BufferCounter\ndelay_time: !ruby/object:ActiveSupport::Duration\n parts:\n :hours: 5.0\n value: 18000.0\nbase_class: FanInfluencer\nkey: cc::Influencer::11::fans_count::recalculation\n"], ["run_at", "2018-08-01 20:22:58.010273"], ["created_at", "2018-08-01 15:22:58.012356"], ["updated_at", "2018-08-01 15:22:58.012356"]]
Enqueued recalculation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment