(service: str = "dynamodb")
| 31 | ts = time.strftime("%H:%M:%S") |
| 32 | print(f"[{ts}] [{thread:6s}] {msg}", flush=True) |
| 33 | def make_client(service: str = "dynamodb"): |
| 34 | return boto3.client( |
| 35 | service, |
| 36 | region_name=os.environ.get("AWS_DEFAULT_REGION", "us-east-1"), |
| 37 | endpoint_url=ENDPOINT, |
| 38 | ) |
| 39 | def wait_for_active(client, table_name: str, timeout: float = 60.0) -> None: |
| 40 | deadline = time.monotonic() + timeout |
| 41 | while time.monotonic() < deadline: |
no test coverage detected