Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Make check interval configurable for the runner #402

Merged
merged 3 commits into from
Dec 3, 2021

Conversation

PirminTapken
Copy link
Contributor

Description

Make check interval configurable for the runner in order to reduce load on gitlab API

Migrations required

NO

in order to reduce load on gitlab API
@PirminTapken
Copy link
Contributor Author

One checkmark can be added to #393 by this.

variables.tf Outdated
variable "runners_check_interval" {
description = "defines the interval length, in seconds, between new jobs check."
type = number
default = 0
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ok by me, other option could be to set the default to 3 https://docs.gitlab.com/runner/configuration/advanced-configuration.html

Copy link
Collaborator

@npalm npalm left a comment

Choose a reason for hiding this comment

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

@PirminTapken thanks LGTM

@npalm
Copy link
Collaborator

npalm commented Nov 10, 2021

@PirminTapken please can you check the CI, looks like there is a format error.

Copy link
Collaborator

@npalm npalm left a comment

Choose a reason for hiding this comment

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

Fix formatting

main.tf Outdated
@@ -133,14 +133,15 @@ locals {
runners_root_size = var.runners_root_size
runners_iam_instance_profile_name = var.runners_iam_instance_profile_name
runners_use_private_address_only = var.runners_use_private_address
runners_use_private_address = !var.runners_use_private_address
runners_use_private_address = ! var.runners_use_private_address
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
runners_use_private_address = ! var.runners_use_private_address
runners_use_private_address = !var.runners_use_private_address

@npalm
Copy link
Collaborator

npalm commented Nov 18, 2021

@PirminTapken did you had time to check the review comment?

@vgropp
Copy link

vgropp commented Dec 3, 2021

@npalm i stepped in to fix formatting and default to 3 seconds as @PirminTapken seems quite busy

@npalm npalm merged commit ed9989c into cattle-ops:develop Dec 3, 2021
semantic-releaser bot pushed a commit that referenced this pull request Dec 9, 2021
## [4.36.0](4.35.0...4.36.0) (2021-12-09)

### Features

* Add /certs/client and docker.sock to volumes for docker in docker ([#396](#396)) ([3f79054](3f79054))
* Add variable for Docker registry mirror ([#400](#400)) ([e36c971](e36c971))
* Make check interval configurable for the runner ([#402](#402)) ([ed9989c](ed9989c))

### Bug Fixes

* Remove runner agents if provider assumed a role ([#401](#401)) ([9767603](9767603))
@semantic-releaser
Copy link
Contributor

🎉 This PR is included in version 4.36.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants