shouldPrintMigrationStatus returns true when the migrator is due to print the migration status hint
(rule PrintStatusRule, elapsedSeconds int64)
| 1359 | |
| 1360 | // shouldPrintMigrationStatus returns true when the migrator is due to print the migration status hint |
| 1361 | func (mgtr *Migrator) shouldPrintMigrationStatusHint(rule PrintStatusRule, elapsedSeconds int64) (shouldPrint bool) { |
| 1362 | if elapsedSeconds%600 == 0 { |
| 1363 | shouldPrint = true |
| 1364 | } else if rule == ForcePrintStatusAndHintRule { |
| 1365 | shouldPrint = true |
| 1366 | } |
| 1367 | return shouldPrint |
| 1368 | } |
| 1369 | |
| 1370 | // printStatus prints the progress status, and optionally additionally detailed |
| 1371 | // dump of configuration. |