mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 Automatic purge for local data repo https://github.com/siyuan-note/siyuan/issues/13091
This commit is contained in:
parent
93b687a407
commit
6a442ad85d
23 changed files with 259 additions and 15 deletions
|
@ -119,6 +119,7 @@ func getCurrentTasks() (ret []*Task) {
|
|||
|
||||
const (
|
||||
RepoCheckout = "task.repo.checkout" // 从快照中检出
|
||||
RepoAutoPurge = "task.repo.autoPurge" // 自动清理数据仓库
|
||||
DatabaseIndexFull = "task.database.index.full" // 重建索引
|
||||
DatabaseIndex = "task.database.index" // 数据库索引
|
||||
DatabaseIndexCommit = "task.database.index.commit" // 数据库索引提交
|
||||
|
@ -143,6 +144,7 @@ const (
|
|||
// uniqueActions 描述了唯一的任务,即队列中只能存在一个在执行的任务。
|
||||
var uniqueActions = []string{
|
||||
RepoCheckout,
|
||||
RepoAutoPurge,
|
||||
DatabaseIndexFull,
|
||||
DatabaseIndexCommit,
|
||||
OCRImage,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue