Closed shashidhar087 closed 2 years ago
Scale down lambda logs.
We can observe in screenshot that the runner was kept idle (1) until 00:00 UTC hour and there after the runner was terminated and went into infinite loop of creation and termination of runners due to an issue with time calculation.
More details to add, on friday and sunday, the const next = moment(expr.next().toDate());
would result the date to be next monday and next saturday respectively. The math condition is always false since the time difference in seconds will not be less than 5.
I have found a solution to this and will create a PR next week.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs. Thank you for your contributions.
We have defined Idle config to maintain runner count on weekday and weekend. We have below Idle config,
The function "https://github.com/philips-labs/terraform-aws-github-runner/blob/develop/modules/runners/lambdas/runners/src/scale-runners/scale-down-config.ts#L22" is returing the value '0' and causing the runners to terminate. This is leading to continuous launch and termination of runners if Pooling feature is enabled.
We dont have a solution to this issue right now. Sharing the issue which we faced over the weekend.
We tried to debug the code and below is the information.