Issue: Running "python worker.py" from command prompt, terminates with SQL error: "no such table: jobs"
Start api_gateway.py service first
(base) PS C:\Users\saad0\Documents\source\echo> python worker.py
Traceback (most recent call last):
File "C:\Users\saad0\Documents\source\echo\worker.py", line 50, in <module>
job = conn.execute(
~~~~~~~~~~~~^
"SELECT id, filename FROM jobs WHERE status='queued' ORDER BY created_at LIMIT 1"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
).fetchone()
^
sqlite3.OperationalError: no such table: jobs
Comments
Post a Comment