Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/badoo/thunder
/ functions
Functions
724 in github.com/badoo/thunder
⨍
Functions
724
◇
Types & classes
128
↓ 52 callers
Method
Unlock
()
go-proxyd/vhash/vhach.go:36
↓ 49 callers
Method
Lock
()
go-proxyd/vhash/vhach.go:32
↓ 29 callers
Method
String
()
go-proxyd/proto/phproxyd.pb.go:194
↓ 25 callers
Method
GetHash
()
go-proxyd/proto/phproxyd.pb.go:593
↓ 24 callers
Method
Exec
(queryTpl string, args ...interface{})
db/db.go:231
↓ 21 callers
Method
String
()
proto/thunder.pb.go:122
↓ 15 callers
Method
Query
(queryTpl string, args ...interface{})
db/db.go:222
↓ 12 callers
Method
String
()
proto/phproxyd/phproxyd.pb.go:176
↓ 12 callers
Function
getNextLaunchTsForCron
(ts, now uint64, secRnd int, cron string)
jobgen/cron.go:21
↓ 10 callers
Function
cronFindClosestNext
(value int, options cronRange)
jobgen/cron.go:145
↓ 9 callers
Function
trigger
trigger a channel. do not block if channel is already full
jobgen/dispatcher.go:766
↓ 8 callers
Method
call
(req proto.Message)
jobgen/launcher.go:103
↓ 8 callers
Method
printTrace
()
jobgen/dispatcher.go:457
↓ 7 callers
Method
Get
(key uint64)
go-proxyd/vhash/vhach.go:40
↓ 7 callers
Function
convertTsIntToString
(ts sql.NullInt64)
jobgen/launcher.go:569
↓ 7 callers
Method
logIncorrectFinish
(resp *badoo_phproxyd.ResponseCheck, row *RunQueueEntry, prevStatus string)
jobgen/launcher.go:633
↓ 6 callers
Function
DebugPrintln
(localPrefix, str string)
db/db.go:203
↓ 6 callers
Method
String
()
jobgen/notifiers.go:293
↓ 6 callers
Function
pNullInt64
(arg sql.NullInt64)
jobgen/notifiers.go:285
↓ 5 callers
Method
ErrorGeneric
(args ...interface{})
go-proxyd/proto/phproxyd.gpbrpc.go:241
↓ 5 callers
Method
GetScripts
()
go-proxyd/proto/phproxyd-config.pb.go:34
↓ 5 callers
Method
GetStore
()
go-proxyd/proto/phproxyd.pb.go:621
↓ 5 callers
Method
addToWaiting
(row *TimetableEntry)
jobgen/dispatcher.go:494
↓ 5 callers
Function
cronMakeRange
** * Convert "1-23/4" to array(1 => true, 5 => true, 9 => true, 13 => true, 17 => true, 21 => true) * * @param $col string crontab column * @
jobgen/cron.go:244
↓ 5 callers
Method
getCache
(key uint64)
go-proxyd/sharded_cache.go:25
↓ 4 callers
Method
GetErrorCode
()
proto/thunder.pb.go:144
↓ 4 callers
Function
StdoutFile
(store badoo_phproxyd.StoreT, id uint64)
go-proxyd/go-proto.go:35
↓ 4 callers
Function
copyRunQueueMap
(m map[uint64]*RunQueueEntry)
jobgen/launcher.go:93
↓ 4 callers
Method
getMapByStatus
(status string)
jobgen/launcher.go:519
↓ 4 callers
Function
launcherPrint
(w io.Writer, idRows map[uint64]*jobgen.RunQueueEntry, m []*jobgen.RunQueueEntry, status string)
web.go:103
↓ 4 callers
Function
loadNewIds
(newIds map[uint64]bool)
jobgen/model.go:869
↓ 4 callers
Function
notifyAboutNewTTRows
location = DEFAULT_LOCATION_IDX for location_type=any and hostname for location_type=each
jobgen/notifiers.go:96
↓ 4 callers
Method
removeFromAdded
(row *TimetableEntry)
jobgen/dispatcher.go:478
↓ 4 callers
Function
saveOffsets
()
logs-collector/logscol/collector.go:336
↓ 4 callers
Method
terminate
(row *RunQueueEntry, action string)
jobgen/launcher.go:785
↓ 4 callers
Method
updateStatus
(row *RunQueueEntry, newStatus string)
jobgen/launcher.go:533
↓ 3 callers
Method
Begin
()
db/db.go:155
↓ 3 callers
Method
ErrorAlreadyRunning
(args ...interface{})
go-proxyd/proto/phproxyd.gpbrpc.go:251
↓ 3 callers
Method
ErrorGeneric
(args ...interface{})
proto/thunder.gpbrpc.go:147
↓ 3 callers
Method
ErrorNotFound
(args ...interface{})
go-proxyd/proto/phproxyd.gpbrpc.go:256
↓ 3 callers
Function
Exec
(queryTpl string, args ...interface{})
db/db.go:300
↓ 3 callers
Method
GetClassName
()
proto/thunder.pb.go:397
↓ 3 callers
Method
OK
(args ...interface{})
go-proxyd/proto/phproxyd.gpbrpc.go:233
↓ 3 callers
Method
Rollback
()
db/db.go:188
↓ 3 callers
Function
StderrFile
(store badoo_phproxyd.StoreT, id uint64)
go-proxyd/go-proto.go:42
↓ 3 callers
Function
TplQuery
(query string, args ...interface{})
db/db.go:275
↓ 3 callers
Method
addToAdded
(row *TimetableEntry)
jobgen/dispatcher.go:463
↓ 3 callers
Method
delFromMaps
(id uint64)
jobgen/launcher.go:473
↓ 3 callers
Function
deleteFromRunQueue
(tx *db.LazyTrx, ids []uint64, prevStatus string)
jobgen/model.go:222
↓ 3 callers
Function
getLocationIdx
(locationType string, location string)
jobgen/common.go:53
↓ 3 callers
Function
getNextJobGenerateTs
(className string, firstRun bool, prevTs uint64, settings *ScriptSettings)
jobgen/common.go:26
↓ 3 callers
Method
processFinished
process finished: 1. send an error to ev.errorCh, nil if all is ok 2. restore state upon failure
jobgen/dispatcher.go:310
↓ 3 callers
Method
removeFromWaiting
(row *TimetableEntry)
jobgen/dispatcher.go:509
↓ 3 callers
Function
scanRqEntry
(rows *sql.Rows)
jobgen/model.go:823
↓ 2 callers
Method
Commit
()
db/db.go:160
↓ 2 callers
Method
Delete
(key uint64)
go-proxyd/vhash/vhach.go:56
↓ 2 callers
Method
Enum
()
proto/thunder.pb.go:117
↓ 2 callers
Method
ErrorRunFailed
(args ...interface{})
go-proxyd/proto/phproxyd.gpbrpc.go:246
↓ 2 callers
Function
EscapeString
grabbed from mymysql examples
db/db.go:62
↓ 2 callers
Method
GetErrorText
()
proto/thunder.pb.go:151
↓ 2 callers
Method
GetHostname
()
proto/thunder.pb.go:172
↓ 2 callers
Method
GetLauncher
()
proto/thunder-config.pb.go:88
↓ 2 callers
Method
GetPrevStatus
()
proto/thunder.pb.go:544
↓ 2 callers
Method
GetRunId
()
proto/thunder.pb.go:537
↓ 2 callers
Method
Len
Timetable Priority Queue:
jobgen/dispatcher.go:737
↓ 2 callers
Method
RequestCheck
(rctx gpbrpc.RequestT, request *RequestCheck)
go-proxyd/proto/phproxyd.gpbrpc.go:183
↓ 2 callers
Method
RequestFree
(rctx gpbrpc.RequestT, request *RequestFree)
go-proxyd/proto/phproxyd.gpbrpc.go:184
↓ 2 callers
Method
RequestPing
(rctx gpbrpc.RequestT, request *RequestPing)
go-proxyd/proto/phproxyd.gpbrpc.go:180
↓ 2 callers
Method
RequestRrd
(rctx gpbrpc.RequestT, request *RequestRrd)
go-proxyd/proto/phproxyd.gpbrpc.go:179
↓ 2 callers
Method
RequestRun
(rctx gpbrpc.RequestT, request *RequestRun)
go-proxyd/proto/phproxyd.gpbrpc.go:182
↓ 2 callers
Method
RequestTerminate
(rctx gpbrpc.RequestT, request *RequestTerminate)
go-proxyd/proto/phproxyd.gpbrpc.go:185
↓ 2 callers
Method
String
()
logs-collector/common/lines.pb.go:32
↓ 2 callers
Method
acceptNewJobs
(jobs []*TimetableEntry)
jobgen/dispatcher.go:524
↓ 2 callers
Method
addToMaps
(row *RunQueueEntry)
jobgen/launcher.go:493
↓ 2 callers
Function
addToTimetable
method inserts rows into timetable and sets insert id
jobgen/model.go:759
↓ 2 callers
Method
checkZero
(src string)
jobgen/dispatcher.go:443
↓ 2 callers
Method
convertRunQueueEntryToFinishInfo
(row *RunQueueEntry)
jobgen/launcher.go:603
↓ 2 callers
Function
cronGetDays
** * Get array(day => true) of days that match supplied days_of_month or days_of_week for a given month and year * * @param $month * @param $year
jobgen/cron.go:171
↓ 2 callers
Function
cronNextLaunchTime
** * Compute next launch timestamp based on cron settings * * @param $minutes array 1. Range for minute column (e.g. self::_cronMakeRange
jobgen/cron.go:55
↓ 2 callers
Function
dieWithUsage
()
logs-collector/main.go:19
↓ 2 callers
Function
doRotate
(filename string, ino uint64)
logs-collector/logscol/collector.go:248
↓ 2 callers
Function
generationFinished
** * Whether or not current generation has properly finished (with finish_jobs applied). * * If location_type is not 'any', then just isset($timeta
jobgen/model.go:491
↓ 2 callers
Function
getFreeMem
(info *ServerInfo)
jobgen/common.go:22
↓ 2 callers
Function
getLocations
(settings *ScriptSettings)
jobgen/servers.go:100
↓ 2 callers
Function
getOrCreateDispatcherThread
(className, location string)
jobgen/notifiers.go:41
↓ 2 callers
Function
getScriptPath
(settings *ScriptSettings)
jobgen/launcher.go:245
↓ 2 callers
Function
logFailedLocation
(settings *ScriptSettings, location, failureReason string)
jobgen/servers.go:133
↓ 2 callers
Function
notifyAboutNewRQRows
(hostname string, rqRows []*RunQueueEntry, allJobs bool)
jobgen/notifiers.go:143
↓ 2 callers
Function
notifyForFullTTSelect
select everything from timetable, notify dispatcher threads and start them if needed
jobgen/notifiers.go:178
↓ 2 callers
Function
openFile
(filename string)
logs-collector/logsproc/processor.go:94
↓ 2 callers
Function
pNullFloat64
(arg sql.NullFloat64)
jobgen/notifiers.go:277
↓ 2 callers
Method
persistFinishAndNotify
(row *RunQueueEntry, success bool, prevStatus string)
jobgen/launcher.go:577
↓ 2 callers
Method
prepareFirstQuery
(queryTpl string, args ...interface{})
db/db.go:207
↓ 2 callers
Function
prepareNextGeneration
(tx *db.LazyTrx, have_finish_jobs bool, className string, settings *ScriptSettings)
jobgen/model.go:374
↓ 2 callers
Method
processWaiting
()
jobgen/launcher.go:255
↓ 2 callers
Method
redispatch
()
jobgen/dispatcher.go:579
↓ 2 callers
Function
scanTimetableEntry
(rows *sql.Rows)
jobgen/model.go:279
↓ 2 callers
Function
selectRQAndNotify
select everything from timetable, notify dispatcher threads and start them if needed
jobgen/notifiers.go:234
↓ 2 callers
Function
selectTimetable
()
jobgen/model.go:306
↓ 2 callers
Function
shouldHaveFinished
We set alarm on the end host so that we can be sure that script is dead after created + max_time
jobgen/launcher.go:469
next →
1–100 of 724, ranked by callers