Use Redis hash for storing migration state instead of one key per user
This commit is contained in:
parent
ad8a75a0ad
commit
685c82d068
@ -53,11 +53,11 @@ class Migrator
|
|||||||
end
|
end
|
||||||
|
|
||||||
def set_container_migration_state(type)
|
def set_container_migration_state(type)
|
||||||
redis.set("rs:container_migration:#{username}", type) unless dry_run
|
redis.hset("rs:container_migration", username, type) unless dry_run
|
||||||
end
|
end
|
||||||
|
|
||||||
def delete_container_migration_state
|
def delete_container_migration_state
|
||||||
redis.del("rs:container_migration:#{username}") unless dry_run
|
redis.hdel("rs:container_migration", username) unless dry_run
|
||||||
end
|
end
|
||||||
|
|
||||||
def work_on_dir(directory, parent_directory)
|
def work_on_dir(directory, parent_directory)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user