Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: authenticate memory warning logs from runner to persist #3507

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

TBonnin
Copy link
Collaborator

@TBonnin TBonnin commented Feb 11, 2025

Making sure the correct authorization header is passed when making a call from runner to log memory usage warnings.

It was much easier to fix than I thought I wish I had looked into it earlier.

To test it locally you are gonna need to modify/remove the condition if (memoryUsagePercentage > MEMORY_WARNING_PERCENTAGE_THRESHOLD)

Copy link

linear bot commented Feb 11, 2025

@@ -56,6 +56,7 @@ export const ENVS = z.object({
IDLE_MAX_DURATION_MS: z.coerce.number().default(0),
RUNNER_NODE_ID: z.coerce.number().optional(),
RUNNER_URL: z.string().url().optional(),
RUNNER_MEMORY_WARNING_THRESHOLD: z.coerce.number().optional().default(85),
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

increase the limit to 85 because I don't want to spam logs too much. We can tweak this value later

@TBonnin TBonnin force-pushed the tbonnin/nan-2690/fix-memory-warning branch from 837c06d to cea4037 Compare February 11, 2025 16:56
@TBonnin TBonnin enabled auto-merge (squash) February 11, 2025 16:56
@TBonnin TBonnin merged commit 06b1812 into master Feb 11, 2025
16 checks passed
@TBonnin TBonnin deleted the tbonnin/nan-2690/fix-memory-warning branch February 11, 2025 17:00
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants