package
0.0.0-20241217062345-852b9c5a8d98
Repository: https://github.com/tianlin0/plat-lib.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
SetAutoCommit set auto commit.
SetHandleZombieJobsDstStatus HandleZombieJobs 是用来处理系统极端情况下丢的消息,如redis宕机、pop重启 默认会将超时的 ‘todo’ job 设置为 ‘zombie’ 状态,不作任何其他行为 SetHandleZombieJobsDstStatus 可以配置将超时的 ‘todo’ job 设置为 ‘failed’或者‘done’状态 如果SetHandleZombieJobsDstStatus 配置将超时的 ‘todo’ job 设置为 ‘todo’ 状态, 则系统会重新将job Lpush 到队列中, 如果超时时间设置的过小,可能存在重复消费.
SetHandleZombieJobsLimit set handle zombie jobs task once query mysql 'zombie' job limit.
SetHandleZombieJobsPeriod set handle zombie jobs task period.
SetHandleZombieJobsTimeout set timeout to descide a 'todo' job to be zombie.
SetInitDB set whether init DB or not.
SetJobFunc set JobFunc.
SetListNamePrefix set redis list name prefix.
SetMaxFailedTimes set max failed times.
SetParallelNum set consumer numbers to run JobFunc.Defualt 0, which means not to run JobFunc as consumer.
SetTableName set mysql task job table name.
SetTaskName set task name.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author