跳转至

public.agent_task_run_lock

列

名称 类型 默认值 可空 子表 父表 注释
agentId varchar(36) false public.agents 其定时任务运行被锁定的已发布 Agent
createdAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false
heldUntil timestamp(3) with time zone false 此时间过后,另一个 main 可认领此任务运行锁
holderId uuid false 由运行中的 main 生成的临时锁持有者令牌
taskId varchar(32) false 已发布的任务 ID,其定时运行已被锁定
updatedAt timestamp(3) with time zone CURRENT_TIMESTAMP(3) false

约束

名称 类型 定义
FK_b57a2862ae869aab24e54cefd48 FOREIGN KEY FOREIGN KEY ("agentId") REFERENCES agents(id) ON DELETE CASCADE
PK_f593adaf7230e964d3c25deda64 PRIMARY KEY PRIMARY KEY ("agentId", "taskId")
agent_task_run_lock_agentId_not_null n NOT NULL "agentId"
agent_task_run_lock_createdAt_not_null n NOT NULL "createdAt"
agent_task_run_lock_heldUntil_not_null n NOT NULL "heldUntil"
agent_task_run_lock_holderId_not_null n NOT NULL "holderId"
agent_task_run_lock_taskId_not_null n NOT NULL "taskId"
agent_task_run_lock_updatedAt_not_null n NOT NULL "updatedAt"

索引

名称 定义
PK_f593adaf7230e964d3c25deda64 CREATE UNIQUE INDEX "PK_f593adaf7230e964d3c25deda64" ON public.agent_task_run_lock USING btree ("agentId", "taskId")

关系

erDiagram

"public.agent_task_run_lock" }o--|| "public.agents" : "FOREIGN KEY (#quot;agentId#quot;) REFERENCES agents(id) ON DELETE CASCADE"

"public.agent_task_run_lock" {
  varchar_36_ agentId FK
  timestamp_3__with_time_zone createdAt
  timestamp_3__with_time_zone heldUntil
  uuid holderId
  varchar_32_ taskId
  timestamp_3__with_time_zone updatedAt
}
"public.agents" {
  varchar_36_ activeVersionId FK
  varchar_36_ approvalWorkflowId FK
  boolean availableInMCP
  timestamp_3__with_time_zone createdAt
  varchar_36_ id
  uuid identityId FK
  json integrations
  boolean isArchived
  varchar_128_ name
  varchar_36_ parentFolderId FK
  varchar_255_ projectId FK
  integer publicationRevision
  integer revision
  json schema
  varchar_16_ scope
  timestamp_3__with_time_zone setupCompletedAt
  json skills
  json tools
  timestamp_3__with_time_zone updatedAt
  varchar_36_ versionId
}

由 tbls 生成

本页原文 Markdown:在 AtomGit 查看·内容源自开源项目 n8/n8n