ddb-single-table-example icon indicating copy to clipboard operation
ddb-single-table-example copied to clipboard

Use a table waiter rather than sleep

Open mrichman opened this issue 6 years ago • 0 comments

Table waiters are more deterministic than sleep().

https://github.com/trek10inc/ddb-single-table-example/blob/d54358a441c7305bd9d5ebbd1f2876e5a53f44a9/load.py#L57

waiter = dynamodb.meta.client.get_waiter(tablename)
waiter.wait(TableName=table_name)

mrichman avatar Oct 31 '19 15:10 mrichman