Oliver Alluard
09/15/2025, 12:57 PMkapa.ai
09/15/2025, 12:58 PMSYNC_JOB_MAX_TIMEOUT_DAYS environment variable. This will automatically fail any sync job that exceeds the specified number of days. However, the minimum value is 1 day (24 hours), so you cannot set it to a smaller unit like hours or minutes. For example: env SYNC_JOB_MAX_TIMEOUT_DAYS=1 This means any sync running longer than 24 hours will be killed automatically, but you cannot set it to, for example, 6 hours using this parameter alone. There is currently no built-in SYNC_JOB_MAX_TIMEOUT_HOURS parameter in Airbyte OSS as of the latest available documentation and forum discussions. Users have requested more granular control, but it's not natively supported yet [Sync hangs until I cancel](https://discuss.airbyte.io/t/709) [All sync jobs hanging indefinitely](https://github.com/airbytehq/airbyte/issues/55812). ### 2. Heartbeat and Destination Timeout Airbyte also has a heartbeat mechanism for both sources and destinations: - For sources, if no RECORD or STATE message is received within a configurable threshold (default: 3 hours), the sync will be failed with a "source is unresponsive" error. - For destinations, if a call to the destination takes longer than a configurable timeout (default: 24 hours), the sync will be failed with a "destination is unresponsive" error. These can be configured in the flags.yaml file: yaml hseartbeat-max-seconds-between-messages: <seconds> # default is 3 hours heartbeat.failSync: true # default is true destination-timeout-max-seconds: <seconds> # default is 24 hours destination-timeout.failSync: true # default is true But again, the default values are relatively high, and while you can lower them, they are not as granular as per-hour job timeouts for the entire sync process. More details: [Heartbeats Technical Details](https://docs.airbyte.com/platform/understanding-airbyte/heartbeats#technical-details). ### 3. Workload Monitor Airbyte's internal WorkloadMonitor process checks for jobs that are running too long, not heartbeating, or not started, and can cancel them based on configured thresholds. However, the logs and issues indicate that the default sync timeout is set to 720 hours (30 days) in some cases, and there is no evidence in the knowledge sources that this can be set to a custom number of hours for all syncs [All sync jobs hanging indefinitely](https://github.com/airbytehq/airbyte/issues/55812). --- Summary: You can configure Airbyte to kill syncs that run for more than a certain amount of time, but the minimum granularity for the global sync timeout is 1 day. For more granular control (e.g., killing jobs after a few hours), you would need to adjust the heartbeat or destination timeout settings, but these are not designed for per-job runtime limits and may not cover all cases. There is currently no built-in parameter to kill all syncs running for more than a custom number of hours. If you need more granular control, you may need to implement external monitoring and use the Airbyte API to cancel long-running jobs programmatically. If you need more details on how to configure these settings, let me know!Amol Patankar
10/14/2025, 11:01 PMkapa.ai
10/14/2025, 11:01 PMkapa.ai
10/14/2025, 11:01 PMflags.yaml file in an Airbyte deployment. They do confirm that heartbeat and timeout settings can be configured via flags.yaml, but do not provide details on where to find or how to edit this file in your Airbyte installation. If you need this information, you may need to consult the Airbyte community or official support channels for further guidance. References: - [Heartbeats Technical Details (1.7)](https://docs.airbyte.com/platform/1.7/understanding-airbyte/heartbeats#technical-details) - [Heartbeats Technical Details (Next)](https://docs.airbyte.com/platform/next/understanding-airbyte/heartbeats#technical-details)