Skip to content
Snippets Groups Projects
Unverified Commit 44d49cdb authored by metabase-bot[bot]'s avatar metabase-bot[bot] Committed by GitHub
Browse files

Relax public action execution throttler to allow 10 requests every second (#40465) (#40511)

parent 9ef04816
Branches
Tags
No related merge requests found
......@@ -624,10 +624,14 @@
:parameters parameters :qp-runner qp.pivot/run-pivot-query)))
(def ^:private action-execution-throttle
"Rate limit at 1 action per second on a per action basis.
"Rate limit at 10 actions per 1000 ms on a per action basis.
The goal of rate limiting should be to prevent very obvious abuse, but it should
be relatively lax so we don't annoy legitimate users."
(throttle/make-throttler :action-uuid :attempts-threshold 1 :initial-delay-ms 1000 :delay-exponent 1))
(throttle/make-throttler :action-uuid
:attempts-threshold 10
:initial-delay-ms 1000
:attempt-ttl-ms 1000
:delay-exponent 1))
(api/defendpoint POST "/action/:uuid/execute"
"Execute the Action.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment