Skip to content

Commit

Permalink
rate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Apr 19, 2024
1 parent 2a5e7aa commit 579fb31
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions action_customization.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,6 @@ Rate limiting is implemented like this;
.`config.yaml`
----
actions:
# This is the most simple action, it just runs the command and flashes the
# button to indicate status.
#
# If you are running OliveTin in a container remember to pass through the
# docker socket! https://docs.olivetin.app/action-container-control.html
- title: date
shell: date
icon: clock
Expand All @@ -277,6 +272,12 @@ actions:
duration: 5m
----

If you try to execute `date` more than 3 times in 5 minutes, you will get a log message that looks like this;

----
INFO Blocked from executing. This action has run 3 out of 3 allowed times in the last 5m. actionTitle="date"
----

[#action-ids]
=== IDs

Expand Down

0 comments on commit 579fb31

Please sign in to comment.