Area: Deployment
Sub-Area: Managed Ingestion
Applies to: OSS + Cloud
Issue
An ingestion source that has a schedule in the UI does not run at the expected times.
You Might Be Asking
- Why isn't my scheduled ingestion running?
- How do I check whether a schedule was picked up?
- What cron format should I use?
- How do I list ingestion sources with GraphQL?
Cause
GMS runs the ingestion scheduler. It reads each source's schedule and creates the execution requests. The executor only runs those requests. The actions pod or Remote Executor does not trigger schedules.
A source does not run on schedule when GMS cannot schedule it. For example, GMS skips a source whose cron expression is invalid. If GMS creates a run but nothing picks it up, check that an executor is available for the source, as described below.
Solution
1. Check the cron expression
GMS accepts standard 5-field cron (minute hour day-of-month month day-of-week) and 6-field cron. It evaluates the expression in the schedule's timezone. The default timezone is UTC.
0 2 * * * # Daily at 2 AM
0 */6 * * * # Every 6 hours
30 8 * * 1-5 # Weekdays at 8:30 AM
0 0 1 * * # Monthly on the 1st
If the expression is invalid, GMS logs Found malformed Ingestion Source schedule: <cron> for urn: <urn>. Skipping scheduling. The source then never runs on schedule. Fix the schedule in the source's sync schedule step. See UI Ingestion Guide.
2. Check that GMS scheduled the source (self-hosted only)
Search the GMS logs for these lines:
Scheduling next execution of Ingestion Source with urn <urn>. Schedule: <cron>Scheduled next execution of Ingestion Source with urn <urn> in <ms>ms.
If you see the malformed schedule message instead, go back to step 1.
On DataHub Cloud, you can't read GMS logs. Contact DataHub Support if a valid schedule never produces a run.
3. Check run history in the UI
In the left nav, open Data Sources, then the Sources tab. Check the source's run history. See viewing run history and troubleshooting failed ingestion.
If a run shows as aborted, the summary reads Ingestion job got aborted due to worker restart.
4. List sources with GraphQL
The listIngestionSources query takes one required argument, input, of type ListIngestionSourcesInput!. It returns ListIngestionSourcesResult. Each IngestionSource has the fields urn and type. Don't pass start and count as top-level arguments. The query fails validation if you do.
5. Check the executor
-
Self-hosted DataHub: the
datahub-actionsexecutor action runs the ingestion tasks. The Helm chart names the Deployment with theacryl-datahub-actions.fullnamehelper, so the name is not alwaysdatahub-actions. List the Deployments and pods to find the real names, then read that pod's logs:kubectl get deployments | grep actions kubectl get pods | grep actions kubectl logs deployment/<actions-deployment-name>To change the actions pod resources on a Helm install, set the
resourcesvalue of theacryl-datahub-actionssubchart. Don't apply a separate Deployment manifest. -
DataHub Cloud with a Remote Executor: you manage that deployment, including its logs, resources and environment variables. Check its status as described in checking Remote Executor status.
-
DataHub Cloud with DataHub-hosted executors: you can't access the executor pods. Contact DataHub Support.
A run is created against the pool assigned to its source. A Remote Executor must use the same channel (SQS or KAFKA) as its pool, or it does not receive work. A pool with no matching running executor has nothing to pick up the run. Check the pool in the source's Advanced Settings > Executor Pool on the Connection Details page. In Data Sources > Executors, check each pool's channel. See assigning sources to an executor pool.
6. Run the source manually to test
Users with the Manage Metadata Ingestion privilege can run sources. Run the source once from the UI. If the manual run works but the schedule does not, recheck the cron expression and the GMS logs.
If you need to schedule CLI recipes outside the UI, see Introduction to Scheduling Metadata Ingestion.
Related Documentation
- UI Ingestion Guide
- Introduction to Scheduling Metadata Ingestion
- Remote Executor setup and troubleshooting
Tags: scheduled-ingestion, managed-ingestion, cron, executor, datahub-actions, automation, deployment, kubernetes