testtest
This commit is contained in:
parent
eba3491206
commit
fab9d3da73
2
sql.go
2
sql.go
@ -1623,7 +1623,7 @@ func loadMsgParsingRules() (m map[int]MessageParsingRule, err error) {
|
|||||||
return m, nil
|
return m, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func loadCurrentJobs(sid int64) ([]Job, error) {
|
func loadCurrentJobs(sid int) ([]Job, error) {
|
||||||
var (
|
var (
|
||||||
objId int64
|
objId int64
|
||||||
jobTypeId int32
|
jobTypeId int32
|
||||||
|
@ -258,7 +258,7 @@ func SQLIdentifyMsgWorker(id int, objIds <-chan int64) {
|
|||||||
func SQLJobWorker(id int) {
|
func SQLJobWorker(id int) {
|
||||||
//log.Printf("SQLJobWorker[" + strconv.Itoa(id) + "] : Starting.")
|
//log.Printf("SQLJobWorker[" + strconv.Itoa(id) + "] : Starting.")
|
||||||
for true {
|
for true {
|
||||||
jobs, err := loadCurrentJobs()
|
jobs, err := loadCurrentJobs(id)
|
||||||
logOnError(err, "SQLJobWorker["+strconv.Itoa(id)+"] : loadCurrentJobs")
|
logOnError(err, "SQLJobWorker["+strconv.Itoa(id)+"] : loadCurrentJobs")
|
||||||
if len(jobs) > 0 {
|
if len(jobs) > 0 {
|
||||||
log.Printf("SQLJobWorker["+strconv.Itoa(id)+"] : %d jobs.\n", len(jobs))
|
log.Printf("SQLJobWorker["+strconv.Itoa(id)+"] : %d jobs.\n", len(jobs))
|
||||||
|
Loading…
Reference in New Issue
Block a user