MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / register

Method register

task.py:2902–2906  ·  view source on GitHub ↗

注册任务

(self, name: str, cmd: str, interval: int)

Source from the content-addressed store, hash-verified

2900 self._tasks: List[_Script] = []
2901
2902 def register(self, name: str, cmd: str, interval: int):
2903 """注册任务"""
2904 task = _Script(name, cmd, interval)
2905 self._tasks.append(task)
2906 return task
2907
2908 def register_scripts(self, *scripts: _Script):
2909 """注册任务"""

Callers

nothing calls this directly

Calls 2

_ScriptClass · 0.85
appendMethod · 0.45

Tested by

no test coverage detected