First client side (use browser storage to limit across tabs), but server side is also needed to guarantee limiting.
The number of times one can request a job run per period should be controllable by system admins. Maybe even on course-level.

Update:
It’s managed server-side. Administrators can control the global setting for burst (3 by default) and wait time (10s to get a new ‘run test’-credit)
When reaching the rate-limit (run-credit at 0) after pressing one of the run-buttons, it will:

  • style the run-buttons as disabled (only decorative, they’re still functional)
  • show a greyish information message within the console that one has to wait 10s before starting a new run
  • in case run-button is clicked within the wait time, display an alert message that one is exceeding the rate limit (run won’t be executed)

The administration page is extended with settings to control the burst and wait time. It also displays number of times rate limit has been exceeded since start or since change of rate limit settings.

Submitted by Elmer van Chastelet on 24 May 2023 at 10:38

On 24 May 2023 at 10:38 Elmer van Chastelet tagged 1.30

On 24 May 2023 at 10:38 Elmer van Chastelet removed tag 1.30

On 24 May 2023 at 10:38 Elmer van Chastelet tagged delete-me

On 4 July 2023 at 13:04 Elmer van Chastelet removed tag delete-me

On 4 July 2023 at 13:04 Elmer van Chastelet tagged 1.55.0

On 17 September 2024 at 11:50 Elmer van Chastelet tagged 1.43.0

On 17 September 2024 at 11:50 Elmer van Chastelet removed tag 1.55.0

On 17 September 2024 at 11:51 Elmer van Chastelet closed this issue.

Log in to post comments