chore: update benchmark command to use JSON output format and adjust timer interval in StatsResources

This commit is contained in:
Christy Jacob 2025-06-25 14:52:13 +04:00
parent 17428ef433
commit c268b632fb
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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);