Skip to content

Commit

Permalink
Add rate limit prompt to init command (#113)
Browse files Browse the repository at this point in the history
Co-authored-by: Jesse <jwhitehouse@airpost.net>
  • Loading branch information
justinclift and Jesse authored Dec 8, 2021
1 parent ef6e548 commit f6d2c40
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions redash_toolbelt/examples/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,9 @@ def clear():
It's important to provide the correct information here to ensure that all objects are copied
correctly from the ORIGIN instance to the DESTINATION instance.
Please note that this script will solicit an email address from you. But NO EMAILS WILL BE SENT.
Before proceeding, you should disable the rate limits on your DESTINATION instance. Do this
by setting the `REDASH_RATE_LIMIT_ENABLED` environment variable to `false`. After migration
you should re-enable the rate limits by setting this variable to `true`.
"""
)

Expand Down Expand Up @@ -1197,7 +1199,7 @@ def clear():
)
)
destination_admin_email_address = input(
"Please enter the email address for the destination admin user: "
"Please enter the email address for the destination admin user (no emails will be sent): "
)

meta["settings"]["destination_url"] = destination_url
Expand Down

0 comments on commit f6d2c40

Please sign in to comment.