Skip to content

Instantly share code, notes, and snippets.

@fxn
Last active Mar 15, 2021
Embed
What would you like to do?
Sidekiq.configure_server do |config|
config.on(:startup) do
BatchWriter.start_timer
at_exit do
BatchWriter.stop_timer
BatchWriter.flush
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment