🩹 — Fix tasks_tmp table truncating

This commit is contained in:
Luc Didry 2025-04-14 16:58:29 +02:00
parent 2e6c2e205f
commit 5b91c6a482
No known key found for this signature in database
GPG key ID: EA868E12D0257E3C
2 changed files with 3 additions and 3 deletions

View file

@ -13,6 +13,7 @@
- 💄 — Better mobile display
- ✨ — Add waiting tasks count on index page and app API
- ✨ — Allow to customize the name of the argos agent
- 🩹 — Fix tasks_tmp table truncating
## 0.9.0

View file

@ -568,9 +568,8 @@ async def update_from_config(db: Session, config: schemas.Config):
db.commit()
else:
logger.debug("Truncating tasks_tmp table")
db.execute(
sa_text("TRUNCATE TABLE tasks_tmp;").execution_options(autocommit=True)
)
db.execute(sa_text("TRUNCATE TABLE tasks_tmp RESTART IDENTITY;"))
db.commit()
return {
"added": added_tasks,