feat(timer): 新增配置同步到数据库及主节点选举

T5: TimerServiceBase.syncConfigToDatabase() - syncs task config to DB
T6: HostServiceBase - auto master election, stale node detection,
    getMasterNode/setMasterNode methods
This commit is contained in:
augushong
2026-05-26 02:33:43 +08:00
parent d719a99d14
commit abeac2c3cb
5 changed files with 124 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ use app\common\model\TimeModel;
* @property string $node_id 节点ID
* @property string $ip_address IP地址
* @property int $status 状态 0:离线,1:在线
* @property int $is_master 是否主节点 0:否,1:是
* @property string $last_heartbeat_at 最后心跳时间
* @property string $os_info 系统信息
* @property string $php_version PHP版本