Created
April 25, 2022 20:48
-
-
Save Loschcode/a121ae4289eec8dca2803a6b314046b8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class MigrateConcurrently | |
DELAY_BETWEEN_CYCLES_IN_SECONDS = 3 | |
MAX_CYCLES = 100 | |
def initialize; end | |
def perform | |
Logger.info( | |
... | |
delay_between_cycles_in_seconds: DELAY_BETWEEN_CYCLES_IN_SECONDS, | |
) | |
sleep DELAY_BETWEEN_CYCLES_IN_SECONDS | |
... | |
end | |
private | |
def cycles | |
@cycles ||= Cycles.new(max: MAX_CYCLES) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment