wait jobs and status checking for distributed jobs