Hi All,
I have a problem with the scheduler. I noticed this when manually trying to fetch e-mails, since I could not receive any.
After executing the email_account.pull job, I get the following error:
Traceback (most recent call last):
File "apps/frappe/frappe/core/doctype/scheduled_job_type/scheduled_job_type.py", line 117, in execute
frappe.get_attr(self.method)()
File "apps/frappe/frappe/email/doctype/email_account/email_account.py", line 784, in pull
queued_jobs = get_jobs(site=frappe.local.site, key="job_name")[frappe.local.site]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/utils/background_jobs.py", line 295, in get_jobs
jobs = q.jobs + get_running_jobs_in_queue(q)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/utils/background_jobs.py", line 332, in get_running_jobs_in_queue
workers = get_workers(queue)
^^^^^^^^^^^^^^^^^^
File "apps/frappe/frappe/utils/background_jobs.py", line 324, in get_workers
return Worker.all(queue=queue)
^^^^^^^^^^^^^^^^^^^^^^^
File "env/lib/python3.11/site-packages/rq/worker.py", line 257, in all
workers = [
^
File "env/lib/python3.11/site-packages/rq/worker.py", line 258, in <listcomp>
cls.find_by_key(
File "env/lib/python3.11/site-packages/rq/worker.py", line 685, in find_by_key
worker.refresh()
File "env/lib/python3.11/site-packages/rq/worker.py", line 1041, in refresh
queues = as_text(queues)
^^^^^^^^^^^^^^^
File "env/lib/python3.11/site-packages/rq/utils.py", line 58, in as_text
raise ValueError('Unknown type %r' % type(v))
ValueError: Unknown type <class 'NoneType'>
I get the same error with the bench doctor command…
Any idea what I could do?
Thank you
DoCa