nightfox / rubango

Ruby API wrapper for Totango tracking
http://www.totango.com
MIT License
11 stars 4 forks source link

Add setting to allow synchronous remote calls #2

Closed anibalcucco closed 12 years ago

anibalcucco commented 12 years ago

Currently a new thread is created to make the remote calls, but if you already track the events using a background job you don't need to create new threads and it's possible that the worker process is 'done' and thus getting killed off before the remote call is made (we were experiencing this problem in the company i work for and this change solved it).

This PR provides a 'synchronous' setting to configure that. To turn synchronous calls on:

Totango::Config[:synchronous] = true
jonuts commented 12 years ago

applied. Thank you