Skip to content

Commit

Permalink
also register requirest to shutdown process in case of end migration
Browse files Browse the repository at this point in the history
  • Loading branch information
makalaaneesh committed Jan 29, 2024
1 parent 5a231e4 commit 3cf0e54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yb-voyager/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ func registerSignalHandlers() {
utils.PrintAndLog("\nReceived signal %s. Exiting...", sig)
cmd.ProcessShutdownRequested = true
case syscall.SIGUSR2:
cmd.ProcessShutdownRequested = true
utils.PrintAndLog("\nReceived signal to terminate due to end migration command. Exiting...")
case syscall.SIGUSR1:
cmd.StopArchiverSignal = true
Expand Down

0 comments on commit 3cf0e54

Please sign in to comment.