Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update k8s.md #127

Merged
merged 1 commit into from
Jun 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/tutorials/cron-job/k8s.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ func Hello(_ *cobra.Command, _ []string) error {
}
```

### 2.1 如何执行调度
### 3.1 如何执行调度

可以看到 rootCmd 是主命令 , helloJob 就是我们自己的一个要调度的任务,调度之后要执行的方法就是 logic 下 hello.go 中的方法。

如果需要添加更多的任务,我们直接在下方继续添加,在 logic 中添加对应的实现即可。

### 2.2 如何初始化配置
### 3.2 如何初始化配置

我们在执行之前先初始化了配置,看到这里你可能会很眼熟,我们把 go-zero 默认在 main 中的初始化配置放在了此处 initConfig

Expand Down
Loading