MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / AddSubTaskWithOps

Method AddSubTaskWithOps

agent/app/task/task.go:218–221  ·  view source on GitHub ↗
(name string, action ActionFunc, rollback RollbackFunc, retry int, timeout time.Duration)

Source from the content-addressed store, hash-verified

216}
217
218func (t *Task) AddSubTaskWithOps(name string, action ActionFunc, rollback RollbackFunc, retry int, timeout time.Duration) {
219 subTask := &SubTask{RootTask: t, Name: name, Retry: retry, Timeout: timeout, Action: action, Rollback: rollback}
220 t.SubTasks = append(t.SubTasks, subTask)
221}
222
223func (t *Task) AddSubTaskWithAliasAndOps(key string, action ActionFunc, rollback RollbackFunc, retry int, timeout time.Duration) {
224 subTask := &SubTask{RootTask: t, Name: i18n.GetMsgByKey(key), StepAlias: key, Retry: retry, Timeout: timeout, Action: action, Rollback: rollback}

Callers 15

handleRedisBackupFunction · 0.45
handleWebsiteBackupFunction · 0.45
handleAppMethod · 0.45
handleWebsiteMethod · 0.45
handleDatabaseMethod · 0.45
handleDirectoryMethod · 0.45
handleSystemLogMethod · 0.45
handlePostgresqlBackupFunction · 0.45
handlePostgresqlRecoverFunction · 0.45
handleContainerBackupFunction · 0.45
handleContainerRecoverFunction · 0.45
handleMysqlBackupFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected