Skip to content

refactor: remove pinixd built-in scheduler - #167

Merged
yan5xu merged 1 commit into
mainfrom
refactor/remove-pinixd-scheduler
Jun 29, 2026
Merged

refactor: remove pinixd built-in scheduler#167
yan5xu merged 1 commit into
mainfrom
refactor/remove-pinixd-scheduler

Conversation

@yan5xu

@yan5xu yan5xu commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Remove the pinixd built-in cron scheduler, which has been fully replaced by the cloud agent scheduler (agent_schedules table + API goroutine in pinix.ai)
  • Delete 5 files (-1141 lines): scheduler runtime, SQLite store, builtin clip adapter, CLI subcommands
  • Clean up daemon.go: remove scheduler field, SetScheduler(), GetScheduler(), scheduler stop in Close()
  • Preserve data structures (ManifestScheduleDecl, ScheduleConfig, proto fields) — they define the declaration format, not the runtime

Closes #166

The cloud agent scheduler (agent_schedules table + API goroutine)
has fully replaced this. Remove:

- internal/daemon/scheduler.go (cron runtime + invoke)
- internal/daemon/scheduler_clip.go (builtin clip adapter)
- internal/daemon/scheduler_store.go (SQLite execution history)
- internal/builtin/scheduler.go (SchedulerInvoker interface + NewSchedulerClip)
- cmd/pinix/schedule.go (CLI schedule subcommands)

Also remove from daemon.go: scheduler field, SetScheduler(),
GetScheduler(), scheduler.Stop() in Close(), and the
SetOnClipAdded callback that auto-registered clip-declared schedules.

Data structures (ManifestScheduleDecl, ScheduleConfig in registry,
proto schedule fields) are preserved — they define the declaration
format, not the runtime.

Closes #166
@yan5xu
yan5xu merged commit 693b3b0 into main Jun 29, 2026
1 check passed
@yan5xu
yan5xu deleted the refactor/remove-pinixd-scheduler branch June 29, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Refactor] 移除 pinixd 内置 scheduler — 已被云端 agent scheduler 替代

1 participant