We have a daily job that depends on the availability of certain data warehouse tables. Under normal circumstances, the data warehouse table refresh (a process external to my team) is complete before our job runs. On occasion, the DW refresh job runs long, and causes our job to fail when we try to access tables that do not exist.
How would I add a step to the beginning of my job that verifies availability of the required DW tables, and if they are there the job runs; if not, the job should wait x minutes, then try again (up to y times)?