Background task qcluster issue: inventory.tasks.remove_reservation_by_id is not defined #193
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
15:50:29 [Q] ERROR Failed 'inventory.tasks.remove_reservation_by_id' (steak-cold-johnny-lima) - Function inventory.tasks.remove_reservation_by_id is not defined : Traceback (most recent call last):
File "/mnt/c/Users/user/Desktop/haikal_projects/venv/lib/python3.12/site-packages/django_q/worker.py", line 101, in worker
raise ValueError(f"Function {task['func']} is not defined")
ValueError: Function inventory.tasks.remove_reservation_by_id is not defined
15:50:31 [Q] ERROR Failed 'inventory.tasks.remove_reservation_by_id' (angel-summer-neptune-maryland) - Function inventory.tasks.remove_reservation_by_id is not defined : Traceback (most recent call last):
File "/mnt/c/Users/user/Desktop/haikal_projects/venv/lib/python3.12/site-packages/django_q/worker.py", line 101, in worker
raise ValueError(f"Function {task['func']} is not defined")
ValueError: Function inventory.tasks.remove_reservation_by_id is not defined
15:50:40 [Q] ERROR Could not create task from schedule
Traceback (most recent call last):
File "/mnt/c/Users/user/Desktop/haikal_projects/venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 103, in _execute
return self.cursor.execute(sql)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/c/Users/user/Desktop/haikal_projects/venv/lib/python3.12/site-packages/django/db/backends/sqlite3/base.py", line 356, in execute
return super().execute(query)
^^^^^^^^^^^^^^^^^^^^^^
sqlite3.OperationalError: database is locked
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/mnt/c/Users/user/Desktop/haikal_projects/venv/lib/python3.12/site-packages/django_q/scheduler.py", line 39, in scheduler
with db.transaction.atomic(using=db.router.db_for_write(Schedule)):
File "/mnt/c/Users/user/Desktop/haikal_projects/venv/lib/python3.12/site-packages/django/db/transaction.py", line 216, in enter
connection.set_autocommit(
File "/mnt/c/Users/user/Desktop/haikal_projects/venv/lib/python3.12/site-packages/django/db/backends/base/base.py", line 482, in set_autocommit
self._start_transaction_under_autocommit()
File "/mnt/c/Users/user/Desktop/haikal_projects/venv/lib/python3.12/site-packages/django/db/backends/sqlite3/base.py", line 332, in _start_transaction_under_autocommit
self.cursor().execute(f"BEGIN {self.transaction_mode}")
File "/mnt/c/Users/user/Desktop/haikal_projects/venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 122, in execute
return super().execute(sql, params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/c/Users/user/Desktop/haikal_projects/venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 79, in execute
return self._execute_with_wrappers(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/c/Users/user/Desktop/haikal_projects/venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 92, in _execute_with_wrappers
return executor(sql, params, many, context)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/c/Users/user/Desktop/haikal_projects/venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 100, in _execute
with self.db.wrap_database_errors:
File "/mnt/c/Users/user/Desktop/haikal_projects/venv/lib/python3.12/site-packages/django/db/utils.py", line 91, in exit
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/mnt/c/Users/user/Desktop/haikal_projects/venv/lib/python3.12/site-packages/django/db/backends/utils.py", line 103, in _execute
return self.cursor.execute(sql)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/mnt/c/Users/user/Desktop/haikal_projects/venv/lib/python3.12/site-packages/django/db/backends/sqlite3/base.py", line 356, in execute
return super().execute(query)
^^^^^^^^^^^^^^^^^^^^^^
django.db.utils.OperationalError: database is locked
15:50:41 [Q] INFO Processed 'inventory.tasks.create_user_dealer' (vermont-oranges-zulu-single)
15:50:43 [Q] INFO Processed 'inventory.tasks.create_coa_accounts' (september-happy-echo-cardinal)
15:51:40 [Q] INFO Process-a0417b3284ac4bd1959d8d492acca5c0 processing utah-victor-thirteen-cup 'inventory.tasks.remove_reservation_by_id' [remove_reservation_for_car_with_vin_1G1ZT51FX6F111393]
15:51:40 [Q] ERROR Failed 'inventory.tasks.remove_reservation_by_id' (utah-victor-thirteen-cup) - Function inventory.tasks.remove_reservation_by_id is not defined : Traceback (most recent call last):
File "/mnt/c/Users/user/Desktop/haikal_projects/venv/lib/python3.12/site-packages/django_q/worker.py", line 101, in worker
raise ValueError(f"Function {task['func']} is not defined")
ValueError: Function inventory.tasks.remove_reservation_by_id is not defined
15:52:27 [Q] INFO Process-0f23e4752d994d958c78fb9058b5c450 processing angel-summer-neptune-maryland 'inventory.tasks.remove_reservation_by_id' [remove_reservation_for_car_with_vin_2T3DK4DV8CW082696]
15:52:27 [Q] ERROR Failed 'inventory.tasks.remove_reservation_by_id' (angel-summer-neptune-maryland) - Function inventory.tasks.remove_reservation_by_id is not defined : Traceback (most recent call last):
File "/mnt/c/Users/user/Desktop/haikal_projects/venv/lib/python3.12/site-packages/django_q/worker.py", line 101, in worker
raise ValueError(f"Function {task['func']} is not defined")
ValueError: Function inventory.tasks.remove_reservation_by_id is not defined
15:52:28 [Q] INFO Process-a758f5e2dac64f6198092d5ea779cc77 processing steak-cold-johnny-lima 'inventory.tasks.remove_reservation_by_id' [remove_reservation_for_car_with_vin_1FAFP58U0XA209159]
15:52:28 [Q] ERROR Failed 'inventory.tasks.remove_reservation_by_id' (steak-cold-johnny-lima) - Function inventory.tasks.remove_reservation_by_id is not defined : Traceback (most recent call last):
File "/mnt/c/Users/user/Desktop/haikal_projects/venv/lib/python3.12/site-packages/django_q/worker.py", line 101, in worker
raise ValueError(f"Function {task['func']} is not defined")
ValueError: Function inventory.tasks.remove_reservation_by_id is not defined