Skip to content

Commit

Permalink
fix(core): fire local SystemInfo events every second (#2454)
Browse files Browse the repository at this point in the history
During local development, we are firing events for the AutoscaledPool
about current system resources like memory or CPU. We were firing them
once a minute by default, but we remove those snapshots older than 30s,
so we never had anything to compare and always used only the very last
piece of information.

This PR changes the interval to 1s, aligning this with how the Apify
platform fires events.
  • Loading branch information
B4nan committed May 7, 2024
1 parent a41e2ac commit 1fa9a66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ export class Configuration {
purgeOnStart: true,
headless: true,
persistStateIntervalMillis: 60_000,
systemInfoIntervalMillis: 60_000,
systemInfoIntervalMillis: 1_000,
persistStorage: true,
};

Expand Down

0 comments on commit 1fa9a66

Please sign in to comment.