Skip to content

[Bug] duplicate key value violates unique constraint "unique_job_executions" #6705

Description

@MrLuckStar

Contact Information

No response

MaxKB Version

v2.10.5-lts

Problem Description

when i use maxkb ,i found some error

2026-08-18 14:56:26.559 CST [31] LOG: checkpoint starting: time
2026-08-18 14:56:34.196 CST [31] LOG: checkpoint complete: wrote 77 buffers (0.5%); 0 WAL file(s) added, 0 removed, 0 recycled; write=7.622 s, sync=0.006 s, total=7.638 s; sync files=57, longest=0.005 s, average=0.001 s; distance=289 kB, estimate=3819 kB; lsn=0/147E4E58, redo lsn=0/147E4E00
2026-08-18 15:00:00.013 CST [220] ERROR: duplicate key value violates unique constraint "unique_job_executions"
2026-08-18 15:00:00.013 CST [220] DETAIL: Key (job_id, run_time)=(clean_debug_file, 2026-08-18 07:00:00+00) already ex ists.
2026-08-18 15:00:00.013 CST [220] STATEMENT: INSERT INTO "django_apscheduler_djangojobexecution" ("job_id", "status", "run_time", "duration", "finished", "exception", "traceback") VALUES ('clean_debug_file', 'Executed', '2026-08-18 15:00 :00+08:00'::timestamptz, 0.00697700000000000, 1787036400.00698, NULL, NULL) RETURNING "django_apscheduler_djangojobexec ution"."id"

Steps to Reproduce

use for normal, when i check run log ,it's still there

The expected correct result

No response

Related log output

Additional Information

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions