myxce/src/frontend/apiserver/models
Rongsong Shen febb4a6c4d fix: preserve admin-set host state across worker re-registration in makeWorker_
When a worker re-joins and already exists in workermgr, makeWorker_()
now overrides the existing slot instead of returning EEXIST. Admin-set
flags (LOCKEDU, CLOSED, HIDDEN, CLOSED_BY_ADMIN) survive the override.

Add XCE_WORKER_CLOSED_BY_ADMIN flag to distinguish admin-closed hosts
from workload-closed ones. worker_ctrl sets/clears it alongside CLOSED.

Refactor worker_init/worker_destroy into copy_worker/kill_worker helpers
shared by both fresh creation and override paths.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-13 10:38:39 +00:00
..
apikey.go Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
auth.go Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
clusters.go Add HostConfig + Cluster fields to models and update docs 2026-04-16 09:24:22 +00:00
clusters_test.go Add HostConfig + Cluster fields to models and update docs 2026-04-16 09:24:22 +00:00
common.go refactor: represent time fields as int64 Unix seconds throughout the stack 2026-05-09 07:00:49 +00:00
files.go Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
hosts.go fix: preserve admin-set host state across worker re-registration in makeWorker_ 2026-05-13 10:38:39 +00:00
hosts_test.go fix: preserve admin-set host state across worker re-registration in makeWorker_ 2026-05-13 10:38:39 +00:00
jobs.go refactor: represent time fields as int64 Unix seconds throughout the stack 2026-05-09 07:00:49 +00:00
jobs_test.go feat: P2.5-7a map JOB_STAT_TRANSIENT (0x400) to TRANSIENT in job status API 2026-05-08 02:03:19 +00:00
queues.go Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
resources.go Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
roles.go Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00
users.go Merge Go frontend (apiserver + xcecli) into meson build 2026-04-14 11:23:18 +08:00