camertron / turbo-sprockets-rails4

Speed up asset precompliation by compiling assets in parallel.
MIT License
19 stars 8 forks source link

Improved connection reset after parallel tasks #2

Closed thizzle closed 6 years ago

thizzle commented 6 years ago

Using reconnect! assumes that the connection is still valid. ActiveRecord will attempt to execute queries against that connection, and crash here because there is no error handling.

Specifically, we were experiencing uncaught PG::UnableToSend errors generated by this line, because ActiveRecord attempts to dealloc items as part of the reconnect! process.

camertron commented 6 years ago

Sweet! Thank you :)

camertron commented 6 years ago

Released as v1.2.4

thizzle commented 6 years ago

Thanks for the quick response! I realized that I had accidentally removed an ActiveRecord check guard as well, though. Restored in #3 .