mirror of
https://github.com/hibiken/asynq.git
synced 2025-04-22 16:50:18 +08:00
Cleanup
This commit is contained in:
parent
b0945e8d3e
commit
4e2c8bb8bc
@ -33,16 +33,6 @@ func init() {
|
|||||||
rootCmd.AddCommand(migrateCmd)
|
rootCmd.AddCommand(migrateCmd)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Migration Steps:
|
|
||||||
//
|
|
||||||
// Step 1: Backup your Redis DB with RDB snapshot file
|
|
||||||
//
|
|
||||||
// Step 2: Run the following command to update the DB with new schema:
|
|
||||||
// asynq migrate
|
|
||||||
//
|
|
||||||
// Step 3 (Optional):
|
|
||||||
// If Step 2 fails, restore from the backup and report an issue.
|
|
||||||
|
|
||||||
func backupKey(key string) string {
|
func backupKey(key string) string {
|
||||||
return fmt.Sprintf("%s:backup", key)
|
return fmt.Sprintf("%s:backup", key)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user