Small fixes to enable dry-run for ingest task.