mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 00:49:02 +00:00
chore: update benchmark command to use JSON output format and adjust timer interval in StatsResources
This commit is contained in:
parent
17428ef433
commit
c268b632fb
2 changed files with 2 additions and 2 deletions
2
.github/workflows/benchmark.yml
vendored
2
.github/workflows/benchmark.yml
vendored
|
|
@ -65,7 +65,7 @@ jobs:
|
|||
sudo apt update
|
||||
sudo apt install oha
|
||||
- name: Benchmark PR
|
||||
run: 'oha -z 180s http://localhost/v1/health/version -j > benchmark.json'
|
||||
run: 'oha -z 180s http://localhost/v1/health/version --output-format json > benchmark.json'
|
||||
- name: Cleaning
|
||||
run: docker compose down -v
|
||||
- name: Installing latest version
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ class StatsResources extends Action
|
|||
Console::success('Stats resources: started');
|
||||
|
||||
$interval = (int) System::getEnv('_APP_STATS_RESOURCES_INTERVAL', '3600');
|
||||
Timer::tick($interval, function () use ($queue) {
|
||||
Timer::tick($interval * 1000, function () use ($queue) {
|
||||
Authorization::disable();
|
||||
Authorization::setDefaultStatus(false);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue