Skip to content

Instantly share code, notes, and snippets.

ENV['DISABLE_INITIALIZER_FROM_RAKE'] || Application.model_call_setters
(12-6)/2
<div class="row">
<div class="col-md-6 col-md-offset-3"></div>
</div>
#simulating a worker running every X
#a user will ahve to receive a msg every Y interval
#user msg is sent sometime between now and now+X
#next_message_time will have to be set to current_time += Y
#Goal: determine if during a time window of a working processing, if a user is receiving fewer messages than it could because of the offset between 0..X
class SendProcess
RUN_INTERVAL = 60.0 #1 minute in seconds