in app/data/Dynamo.scala [149:161]
private def waitForTableToBecomeActive(name: String): Unit = {
Try(
Option(client.describeTable(generateDescribeTableRequest(name)))
).toOption.flatten match {
case Some(table)
if table.table.tableStatus.toString == TableStatus.ACTIVE.toString =>
()
case _ =>
log.info(s"Waiting for table $name to become active ...")
Thread.sleep(500L)
waitForTableToBecomeActive(name)
}
}