Fix IngestScheduler race condition and run of empty ingest pipeline