Skip to content

Commit

Permalink
chore: update trigger docs
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Phelps <[email protected]>
  • Loading branch information
markphelps committed Nov 19, 2024
1 parent 9c74ec9 commit 4d98e11
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/concepts.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,10 @@ Schedule promotions to run automatically on an interval for phases matching a sp

```go
// schedule promotion attempts to staging every 10 seconds
system.SchedulePromotion(
glu.ScheduleInterval(10*time.Second),
glu.ScheduleMatchesLabel("env", "staging"),
system = system.AddTrigger(
schedule.New(
schedule.WithInterval(10*time.Second),
schedule.MatchesLabel("phase", "staging"),
)
)
```

0 comments on commit 4d98e11

Please sign in to comment.