-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: set :last_ife_exit_deleted_eth_height on deplyment if it's not set yet #1720
fix: set :last_ife_exit_deleted_eth_height on deplyment if it's not set yet #1720
Conversation
8233387
to
617a1f3
Compare
617a1f3
to
1e59cbd
Compare
3d3dec7
to
b39108b
Compare
b39108b
to
e4450ac
Compare
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
defmodule OMG.DB.ReleaseTasks.InitKeysWithValues do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@InoMurko what do you think about this solution?
It uses a release task to set a value if it's not already set.
I am not sure we should use a config provider here as this does not change config at all.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not take the same approach as OMG.WatcherInfo.ReleaseTasks.InitPostgresqlDB
? Why use https://github.com/omgnetwork/elixir-omg/pull/1720/files#diff-3cc6d83c8ce1f76e93166823f0298352R19 a config provider?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, that's exactly what I needed.
apps/omg_db/test/omg_db/release_tasks/init_keys_with_values_test.exs
Outdated
Show resolved
Hide resolved
19ab623
to
c5be9f1
Compare
c5be9f1
to
918e0f3
Compare
5e23fd4
to
42bf5de
Compare
334c391
to
ea8bf5f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor remarks. Great work ❗
apps/omg_watcher/lib/omg_watcher/exit_processor/in_flight_exit_info.ex
Outdated
Show resolved
Hide resolved
…s_update_key_not_initialized
6fb4d73
to
f40b642
Compare
Brings back #1714 and adds a release task to update rocksdb for deployments that do not start from a clean state.