nomadcode/services/core/internal
toki 1a99b3d04b fix(scheduler): skip task finalizer when Ref.ID is empty for missing-create jobs
On the missing-create path, SyncCreation creates a new Plane work item and
returns SyncActionProjected before any workflow task has been registered for
the new work item UUID. Calling CompleteTaskByExternalRef with an empty Ref.ID
caused pgx.ErrNoRows → River retry → reconcile returning not_ready, leaving
only develop_matched recorded.

Fix 1 (roadmap_sync_jobs.go): guard CompleteTaskByExternalRef with args.Ref.ID != ""
so missing-create jobs complete cleanly without retrying.

Fix 2 (workflow/service.go): CompleteTaskByExternalRef now returns (zero, false, nil)
when GetTaskByExternalRef returns pgx.ErrNoRows, so reconcile jobs that have no
registered workflow task also complete cleanly rather than triggering retry loops.

Also adds PLANE_PROJECT_ID to docker-compose.yml environment so the missing-create
bridge receives non-empty tenant/project inputs at runtime.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-21 13:45:48 +09:00
..
adapters update core services and move progress files to archive 2026-06-20 19:25:18 +09:00
agent
authoring feat(authoring): identity write 구현 및 scheduler/river 리팩토링 2026-06-20 21:09:26 +09:00
config feat(roadmapsync): plane origin authoring roundtrip 기능 및 마일스톤 ID 지원 2026-06-21 07:59:56 +09:00
db feat(roadmapsync): plane origin authoring roundtrip 기능 및 마일스톤 ID 지원 2026-06-21 07:59:56 +09:00
gitoevents feat: gito http webhook consumer readiness milestone completion 2026-06-19 14:06:24 +09:00
gitosync feat(roadmapsync): plane origin authoring roundtrip 기능 및 마일스톤 ID 지원 2026-06-21 07:59:56 +09:00
http update roadmap and fix gito webhook implementations 2026-06-19 20:10:35 +09:00
model update core services and move progress files to archive 2026-06-20 19:25:18 +09:00
notification feat: mattermost task notification adapter and agent-task archive 2026-06-03 20:02:37 +09:00
projectsync feat(workitempipeline): add provision service and archive G06 artifacts 2026-06-14 05:13:16 +09:00
protosocket feat: project sync checkout implementation and task archive migration 2026-06-07 03:29:53 +09:00
roadmapsync chore: archive old subtask files and update roadmapsyncpipeline 2026-06-21 08:54:11 +09:00
roadmapsyncpipeline chore: archive old subtask files and update roadmapsyncpipeline 2026-06-21 08:54:11 +09:00
scheduler fix(scheduler): skip task finalizer when Ref.ID is empty for missing-create jobs 2026-06-21 13:45:48 +09:00
storage feat(roadmapsync): plane origin authoring roundtrip 기능 및 마일스톤 ID 지원 2026-06-21 07:59:56 +09:00
workflow fix(scheduler): skip task finalizer when Ref.ID is empty for missing-create jobs 2026-06-21 13:45:48 +09:00
workitem feat: work item creation sync milestone implementation 2026-06-14 06:38:50 +09:00
workitempipeline feat: webhook idempotency & test improvements 2026-06-15 17:36:37 +09:00