Scheduled Job for Auto Reorder, FAILED

I try to setup auto reorder for item, but got this error while it executed :

Traceback (most recent call last):
  File "apps/frappe/frappe/core/doctype/scheduled_job_type/scheduled_job_type.py", line 99, in execute
    frappe.get_attr(self.method)()
  File "apps/erpnext/erpnext/stock/reorder_item.py", line 22, in reorder_item
    return _reorder_item()
  File "apps/erpnext/erpnext/stock/reorder_item.py", line 52, in _reorder_item
    item_warehouse_projected_qty = get_item_warehouse_projected_qty(items_to_consider)
  File "apps/erpnext/erpnext/stock/reorder_item.py", line 128, in get_item_warehouse_projected_qty
    warehouse_doc = frappe.get_doc("Warehouse", warehouse_doc.parent_warehouse)
  File "apps/frappe/frappe/__init__.py", line 1202, in get_doc
    if (key := can_cache_doc(args)) and cache().hexists("document_cache", key):
  File "apps/frappe/frappe/utils/redis_wrapper.py", line 172, in hexists
    return super().hexists(_name, key)
  File "env/lib/python3.10/site-packages/redis/client.py", line 3006, in hexists
    return self.execute_command('HEXISTS', name, key)
  File "env/lib/python3.10/site-packages/redis/client.py", line 901, in execute_command
    return self.parse_response(conn, command_name, **options)
  File "env/lib/python3.10/site-packages/redis/client.py", line 915, in parse_response
    response = connection.read_response()
  File "env/lib/python3.10/site-packages/redis/connection.py", line 739, in read_response
    response = self._parser.read_response()
  File "env/lib/python3.10/site-packages/redis/connection.py", line 470, in read_response
    self.read_from_socket()
  File "env/lib/python3.10/site-packages/redis/connection.py", line 427, in read_from_socket
    bufflen = recv_into(self._sock, self._buffer)
  File "env/lib/python3.10/site-packages/redis/_compat.py", line 75, in recv_into
    return sock.recv_into(*args, **kwargs)
  File "env/lib/python3.10/site-packages/rq/timeouts.py", line 61, in handle_death_penalty
    raise self._exception('Task exceeded maximum timeout value '
rq.timeouts.JobTimeoutException: Task exceeded maximum timeout value (300 seconds)

any suggestion?

I was finally able to solve the issue for the Timeout error. I had to increase the default timeout value (which is set to 300 seconds). For my instance, the job successfully completed at around 9 minutes; so I had to change mine to 10 minutes.

i modified : /apps/frappe/frappe/utils/background_jobs.py

@lru_cache
def get_queues_timeout():
	common_site_config = frappe.get_conf()
	custom_workers_config = common_site_config.get("workers", {})
	default_timeout = 600

	return {
		"default": default_timeout,
		"short": default_timeout,
		"long": 1500,
		**{
			worker: config.get("timeout", default_timeout)
			for worker, config in custom_workers_config.items()
		},
	}

the job was completed but no material request created…