--- title: Frappe edit background job timeout --- ## Frappe edit background job timeout Frappe default time is 300s, So if your job runtime over 300s, Frappe will throw below exception ```python= rq.timeouts.JobTimeoutException: Task exceeded maximum timeout value (300 seconds) ``` But some job need spend a lot of time, So we can set below settings in common_site_config.json ```json= "workers": { "default": { "timeout": 900 }, "short": { "timeout": 900 } } ``` Because frappe background_jobs.py allow overwrite settings from common_site_setting.json ```python= # https://github.com/frappe/frappe/blob/develop/frappe/utils/background_jobs.py#L26 common_site_config = frappe.get_conf() custom_workers_config = common_site_config.get("workers", {}) default_timeout = 300 return { "default": default_timeout, "short": default_timeout, "long": 1500, # This Part allow custom_workers_config to override **{ worker: config.get("timeout", default_timeout) for worker, config in custom_workers_config.items() } } ```