Skip to content

Commit

Permalink
docs(lsp): cron returns an error
Browse files Browse the repository at this point in the history
  • Loading branch information
gak committed Jun 16, 2024
1 parent 3465617 commit 5679b07
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lsp/markdown/completion/cron.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ Snippet for declaring a cron job.

```go
//ftl:cron 0 * * * *
func Hourly(ctx context.Context) {}
func Hourly(ctx context.Context) error {}

//ftl:cron 6h
func EverySixHours(ctx context.Context) {}
func EverySixHours(ctx context.Context) error {}
```

See https://tbd54566975.github.io/ftl/docs/reference/cron/
---

//ftl:cron ${1:Schedule}
func ${2:Name}(ctx context.Context) {
func ${2:Name}(ctx context.Context) error {
${3:// TODO: Implement}
return nil
}
```

0 comments on commit 5679b07

Please sign in to comment.