MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / RegisterTask

Method RegisterTask

pkg/component/tasks.go:20–22  ·  view source on GitHub ↗

RegisterTask registers a task, optionally with restart policy and backoff, to be started after the component started.

(conf *task.Config)

Source from the content-addressed store, hash-verified

18
19// RegisterTask registers a task, optionally with restart policy and backoff, to be started after the component started.
20func (c *Component) RegisterTask(conf *task.Config) {
21 c.taskConfigs = append(c.taskConfigs, conf)
22}
23
24// StartTask implements the TaskStarter interface.
25func (c *Component) StartTask(conf *task.Config) {

Callers 9

NewFunction · 0.80
TestTaskBackoffResetFunction · 0.80
TestTasksFunction · 0.80
NewFunction · 0.80
NewFunction · 0.80
NewFunction · 0.80
NewFunction · 0.80
NewFunction · 0.80

Implementers 1

Componentpkg/component/component.go

Calls

no outgoing calls

Tested by 2

TestTaskBackoffResetFunction · 0.64
TestTasksFunction · 0.64