You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to cancel a task, regardless of the task's current state:
The application hangs for an extended period.
Eventually, it returns a 500 Internal Server Error.
Initial Diagnosis
The issue seems to be related to SQLite database operations in the task status management functionality. Specifically, the following method appears to hang when executing self._conn.execute:
asyncdefset_status(self, task_id: str, status: ResultStatus) ->None:
awaitself._conn.execute(
"UPDATE result SET status = ?, updated_at = ? WHERE task_id = ? AND status = ?",
(
status.value,
datetime.datetime.now(tz=datetime.timezone.utc),
task_id,
ResultStatus.IN_PROGRESS.value,
),
)
awaitself._conn.commit()
Additional Notes
The issue might stem from SQLite's locking behavior, particularly during concurrent updates or uncommitted transactions.
Environment
Python Version: 3.11.x
BentoML Version: >=1.3.15
Operating System:
Windows
Ubuntu 22.04.5 LTS
The text was updated successfully, but these errors were encountered:
Reproduction Code
Observed Symptoms
When attempting to cancel a task, regardless of the task's current state:
500 Internal Server Error
.Initial Diagnosis
The issue seems to be related to SQLite database operations in the task status management functionality. Specifically, the following method appears to hang when executing
self._conn.execute
:Additional Notes
The issue might stem from SQLite's locking behavior, particularly during concurrent updates or uncommitted transactions.
Environment
3.11.x
>=1.3.15
The text was updated successfully, but these errors were encountered: