$typeCode
$typeCode : string
队列编码(注册表锚点,处理器据此读取界面配置)
队列中心测试用任务:失败路径(execute 抛异常走重试/终败)
$typeCode : string
队列编码(注册表锚点,处理器据此读取界面配置)
$data : array
载荷内容(schema 校验后的业务数据,执行台账全量快照)。 命名 $data 而非 $payload:InteractsWithQueue 以 __get('payload') 读取队列原始载荷 (attempts() 依赖它),同名属性会遮蔽魔术方法导致重试计数恒为 1——命名冲突不可犯。
$logId : int
执行台账行 id(状态推进锚点)
__construct(string $typeCode, array $payload, int $logId) : mixed
构造:从注册表动态应用重试策略——tries/backoff/timeout/queue 全部界面配置; afterCommit 在此赋值(Queueable 声明同属性默认 false,类内重复声明被 PHP 判为 不兼容——事务提交后投递统一规避 after_commit=false 的抢跑竞态,业务方零感知)。
| string | $typeCode | |
| array | $payload | |
| int | $logId |
队列未登记