I developed this before I pivoted to https://github.com/neondatabase/neon/pull/4299 for the problem I had at hand. Yet, it might be useful to have an API to wait for a tenant to appear. Includes a demo use case inside the tenant tasks.
postgres --wal-redo