mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-08-30 12:45:32 +08:00
feat(timer): 新增并发数/触发节点/触发时间三字段及幂等分发
Scheme 定义 concurrency(nullable)/trigger_node_id/last_trigger_time 三字段,Model 声明属性,v2.3.0 分发代码幂等 ALTER 保证升级自动同步。 Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -13,6 +13,9 @@ use app\common\model\TimeModel;
|
||||
* @property string $last_execute_node 最后执行节点ID
|
||||
* @property int $last_execute_time 最后执行时间戳
|
||||
* @property int $manual_trigger 手动触发标记:0=未触发,1=已触发 0:未触发,1:已触发
|
||||
* @property int|null $concurrency 并发数:NULL=继承代码默认
|
||||
* @property string|null $trigger_node_id 手动触发目标节点ID
|
||||
* @property int|null $last_trigger_time 手动触发设置时间戳,用于TTL自动复位
|
||||
* @property int $create_time 创建时间
|
||||
*/
|
||||
class SystemTimerConfig extends TimeModel
|
||||
|
||||
@@ -43,6 +43,15 @@ class SystemTimerConfig extends BaseScheme
|
||||
#[Component(type: 'switch', options: ['未触发', '已触发'])]
|
||||
public $manual_trigger;
|
||||
|
||||
#[Field(type: 'int', length: 11, nullable: true, unsigned: true, comment: '并发数:NULL=继承代码默认')]
|
||||
public $concurrency;
|
||||
|
||||
#[Field(type: 'varchar', length: 100, nullable: true, comment: '手动触发目标节点ID')]
|
||||
public $trigger_node_id;
|
||||
|
||||
#[Field(type: 'int', length: 11, nullable: true, unsigned: true, comment: '手动触发设置时间戳,用于TTL自动复位')]
|
||||
public $last_trigger_time;
|
||||
|
||||
#[Field(type: 'int', length: 11, comment: '创建时间', unsigned: true)]
|
||||
#[Component(type: 'date', options: [])]
|
||||
public $create_time;
|
||||
|
||||
Reference in New Issue
Block a user