« Back to channel list

#RubyOnRails - 13 August 2019

« Back 1 day Forward 1 day »
[00:03:22] gambl0re: has joined #RubyOnRails
[00:10:35] skryking: has joined #RubyOnRails
[00:19:58] tdy: has joined #RubyOnRails
[00:25:41] duderonomy: has joined #RubyOnRails
[00:52:27] Tempesta: has joined #RubyOnRails
[01:06:01] dviola: has joined #RubyOnRails
[01:20:54] tdy: has joined #RubyOnRails
[01:23:15] s00pcan: has joined #RubyOnRails
[02:07:02] Technodrome: has joined #RubyOnRails
[02:45:21] Saukk: has joined #RubyOnRails
[03:20:49] tsujp: has joined #RubyOnRails
[03:45:15] tsujp: has joined #RubyOnRails
[04:17:24] srinidhi: has joined #RubyOnRails
[04:26:16] za1b1tsu: has joined #RubyOnRails
[05:00:49] lalitmee: has joined #RubyOnRails
[05:19:07] ariedler: has joined #RubyOnRails
[05:39:02] dionysus69: has joined #RubyOnRails
[05:54:26] alxgsv: has joined #RubyOnRails
[06:12:06] duderonomy: has joined #RubyOnRails
[06:32:50] xco: has joined #RubyOnRails
[06:33:30] duderonomy: has joined #RubyOnRails
[06:38:04] xco: has joined #RubyOnRails
[06:41:37] lxsameer: has joined #RubyOnRails
[06:42:04] corellian: has joined #RubyOnRails
[06:54:15] ur5us: has joined #RubyOnRails
[07:00:02] lankanmon: has joined #RubyOnRails
[07:05:55] quazimodo: has joined #RubyOnRails
[07:06:05] GodFather: has joined #RubyOnRails
[07:06:06] GodFather_: has joined #RubyOnRails
[07:19:55] ariedler: has joined #RubyOnRails
[07:45:14] deepredsky: has joined #RubyOnRails
[08:00:13] lalitmee: has joined #RubyOnRails
[08:00:52] deepredsky: has joined #RubyOnRails
[08:02:31] Aherin: has joined #RubyOnRails
[08:07:29] Ergo: has joined #RubyOnRails
[08:07:29] duderonomy: has joined #RubyOnRails
[08:09:44] duderonomy: has joined #RubyOnRails
[08:13:41] quazimodo: has joined #RubyOnRails
[08:16:29] jefffrails35: has joined #RubyOnRails
[09:20:38] jefffrails35: has joined #RubyOnRails
[09:20:45] ariedler: has joined #RubyOnRails
[09:41:33] Ergo^: has joined #RubyOnRails
[10:55:07] ariedler: has joined #RubyOnRails
[12:29:44] sagax: has joined #RubyOnRails
[12:53:10] tsujp: has joined #RubyOnRails
[13:28:00] uks: has joined #RubyOnRails
[13:31:04] lupine: has joined #RubyOnRails
[13:33:27] RubyMiner: has joined #RubyOnRails
[13:40:48] dionysus69: has joined #RubyOnRails
[13:58:17] shortCircuit__: has joined #RubyOnRails
[14:03:15] eber: has joined #RubyOnRails
[14:04:15] eber: hey guys, really new to ruby/rails, working a legacy app and when I try to `destroy!` a record I get a `ActiveRecord::RecordNotDestroyed` exception but no clues whatsoever about why... any hints or tips on how to debug this?
[14:04:48] shortCircuit__: I have a question, The problem I have is, I am using a sidekiq worker to lookup data from db and then push to kafka. sidekiq has a concurrency of 20 nd database has a pool size of 10. Now when I try to push say a 100 or even 5 messages from rails c. Some of the jobs are enqueued for some time and most jobs fail saying Activerecord Conncetionpool couldn't obttain connecttion in 5 seconds
[14:05:39] reber: has joined #RubyOnRails
[14:07:52] Linell: shortCircuit__: you can reduce Sidekiq concurrency
[14:08:08] Linell: eber: try to do foo = object.destroy!
[14:08:10] shortCircuit__: But when I change the synchronous delivery to asynchronous the jobs pass without gettting stuck in enqueued. So my question is, is it possible that because the kafka delivery is synchronous and some of them remain in enqueued state the database connection is not released.
[14:08:11] Linell: and then try foo.errors
[14:08:42] eber: Let me check that. Tks Linell
[14:09:24] shortCircuit__: Linell: when I make the concurrency and database pool size same, the errors are definitly reduced. But is it the only reason?
[14:12:03] Linell: shortCircuit__: I don't know for sure, but that's often the way to resolve that issue.
[14:12:17] reber_: has joined #RubyOnRails
[14:14:47] shortCircuit__: Linell: do you think that unless an enqueued worker finishes the database connection is not released?
[14:15:11] Linell: That sounds right
[14:17:13] shortCircuit__: oh ok. then that might explain the issue. because most times the number of enqueued jobs is same as the database connection pool. I need to recheck this
[14:17:27] Linell: I think it's talked about in Sidekiq's wiki somewhere
[14:17:39] shortCircuit__: ok, let me check
[14:24:06] s00pcan: has joined #RubyOnRails
[14:27:22] shortCircuit__: Linell: https://github.com/mperham/sidekiq/issues/2624#issuecomment-278737024 this is the best. here it says it sidekiq calls AR::Base.clear_active_connections!
[14:31:26] shortCircuit__: but when is this called? does it mean it releases the connection after the record has been fetched?
[14:32:06] shortCircuit__: oh wait, no this is when sidekiq exits
[14:39:39] eber: has left #RubyOnRails: ()
[14:39:42] dine: has joined #RubyOnRails
[14:41:41] eber: has joined #RubyOnRails
[14:47:39] srinidhi: has joined #RubyOnRails
[15:11:16] Psy-Q: has joined #RubyOnRails
[15:13:15] dionysus70: has joined #RubyOnRails
[15:29:27] LtHummus: has joined #RubyOnRails
[15:29:33] quazimodo: has joined #RubyOnRails
[15:38:20] dviola: has joined #RubyOnRails
[15:47:28] Psy-Q: has left #RubyOnRails: ("Leaving")
[15:48:21] Xiti: has joined #RubyOnRails
[15:56:09] lypsis: has joined #RubyOnRails
[16:25:52] dretnx: has joined #RubyOnRails
[16:28:45] eber: has joined #RubyOnRails
[16:42:40] LtHummus: has joined #RubyOnRails
[16:45:03] GodFather_: has joined #RubyOnRails
[16:45:05] GodFather: has joined #RubyOnRails
[16:48:45] duderonomy: has joined #RubyOnRails
[16:56:58] tdy: has joined #RubyOnRails
[17:13:02] amperry: has joined #RubyOnRails
[17:17:31] amperry: Hey folks, in a 'respond_to' block in my properties controller, I have in the 'else' clause the following: "format.html { redirect_to [:admin, @property], alert: 'property was not updated.' }". I'm hoping to get that to redirect to '/admin/properties/edit/'. But if there's an error updating, I only get the error "No template found for Admin::PropertiesController#update, rendering head :no_content".
[17:18:08] amperry: Why should that be? I'm not trying to go to update, I'm trying to go to edit.
[17:55:28] Frem: has joined #RubyOnRails
[18:04:14] srinidhi: has joined #RubyOnRails
[18:19:05] bryanruiz: has joined #RubyOnRails
[18:45:07] bryanruiz: for Settings.domain from my config/production.rb, where is that set?
[18:45:15] conta1: has joined #RubyOnRails
[19:02:33] mlt-: How do I call create_table from code? Not from migration
[19:09:45] mochiyoda: has joined #RubyOnRails
[19:14:54] gb_away: has joined #RubyOnRails
[19:20:12] spango: has joined #RubyOnRails
[19:22:24] spango: has joined #RubyOnRails
[19:26:54] defsdoor: has joined #RubyOnRails
[19:47:52] sameerynho: has joined #RubyOnRails
[20:00:37] Technodrome: has joined #RubyOnRails
[21:29:53] tdy: has joined #RubyOnRails
[21:42:36] regedit: has joined #RubyOnRails
[22:03:07] FastJack: has joined #RubyOnRails
[22:31:05] ur5us: has joined #RubyOnRails
[23:07:45] bvdw: has joined #RubyOnRails
[23:12:08] gb_away: has joined #RubyOnRails
[23:55:14] RiPuk: has joined #RubyOnRails
[23:59:30] tdy: has joined #RubyOnRails
[23:59:38] morenoh149: has joined #RubyOnRails
[23:59:45] morenoh149: can I ask rspec questions here?