Last active
March 15, 2021 13:37
-
-
Save fxn/b1a8e8aa51185d9908790f04f1bdc2a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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