Commit 1de73bf
authored
fix(runners): increase the log level to WARN when using the enable_job_queued_check parameter (#3046)
The readme section detailing the `enable_job_queued_check` makes it an
appealing function, but it was unclear to me that it could cause some
issues when used with ephemeral runners and matrix workflows.
It is particularly challenging to notice for organizations with a very
large number of repositories, at times with low activity the issue is
not present, but when matrix jobs are started or when multiple
repositories are triggering jobs around the same time window (such as
cron'd workflow), this issue is more likely to be faced.
For example, on the execution that allowed me to find the cause, when
starting a matrix of 9 jobs, 4 of them were actually triggering this log
message:
```
2023-03-10 15:29:09.728 INFO [scale-up:a0502c68-f9b9-5d2d-afd6-70edb7486316 index.js:135249 isJobQueued] Job not queued
```
This log message, aside from being one amongst many other `INFO`
messages, does not provide many details about the consequences.
I suggest bumping the level to `WARN` and adding more details in the
message itself.
Related discussion:
https://github.com/philips-labs/terraform-aws-github-runner/discussions/29311 parent a3eb81e commit 1de73bf
File tree
2 files changed
+2
-2
lines changed- modules/runners/lambdas/runners/src/scale-runners
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
0 commit comments