Skip to content

ScheduledWarmRunnerProps Struct ​

Properties for scheduled warm runners.

Initializer ​

ts
import { ScheduledWarmRunnerProps } from '@cloudsnorkel/cdk-github-runners'

const scheduledWarmRunnerProps: ScheduledWarmRunnerProps = { ... }
python
import cloudsnorkel.cdk_github_runners

cloudsnorkel.cdk_github_runners.ScheduledWarmRunnerProps(
  count: typing.Union[int, float],
  duration: Duration,
  owner: str,
  provider: IRunnerProvider | ICompositeProvider,
  runners: GitHubRunners,
  schedule: Schedule,
  registration_level: str = None,
  repo: str = None
)
java
import com.cloudsnorkel.cdk.github.runners.ScheduledWarmRunnerProps;

ScheduledWarmRunnerProps.builder()
    .count(java.lang.Number)
    .duration(Duration)
    .owner(java.lang.String)
    .provider(IRunnerProvider|ICompositeProvider)
    .runners(GitHubRunners)
    .schedule(Schedule)
//  .registrationLevel(java.lang.String)
//  .repo(java.lang.String)
    .build();
csharp
using CloudSnorkel;

new ScheduledWarmRunnerProps {
    double Count,
    Duration Duration,
    string Owner,
    IRunnerProvider|ICompositeProvider Provider,
    GitHubRunners Runners,
    Schedule Schedule,
    string RegistrationLevel = null,
    string Repo = null
};
go
import "github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners"

&cloudsnorkelcdkgithubrunners.ScheduledWarmRunnerProps {
	Count: *f64,
	Duration: github.com/aws/aws-cdk-go/awscdk/v2.Duration,
	Owner: *string,
	Provider: interface{},
	Runners: github.com/CloudSnorkel/cdk-github-runners-go/cloudsnorkelcdkgithubrunners.GitHubRunners,
	Schedule: github.com/aws/aws-cdk-go/awscdk/v2.aws_events.Schedule,
	RegistrationLevel: *string,
	Repo: *string,
}

Properties ​

countcountcountCountCount ​

count: number

count: typing.Union[int, float]

count: java.lang.Number

Count: double

Count: *f64

Number of warm runners to maintain.

durationdurationdurationDurationDuration ​

duration: Duration

duration: Duration

duration: Duration

Duration: Duration

Duration: Duration

How long the warm runners should be maintained from the fill time (schedule).

Defines the end of the window (schedule time + duration).

ownerownerownerOwnerOwner ​

owner: string

owner: str

owner: java.lang.String

Owner: string

Owner: *string

GitHub owner where runners will be registered (org or user login).

providerproviderproviderProviderProvider ​

Provider: interface{}

Provider to use.

Warm runners bypass the provider selector — they always use this provider, regardless of job characteristics. Labels cannot be modified.

runnersrunnersrunnersRunnersRunners ​

runners: GitHubRunners

runners: GitHubRunners

runners: GitHubRunners

Runners: GitHubRunners

Runners: GitHubRunners

The GitHubRunners construct that owns the shared warm runner infrastructure.

scheduleschedulescheduleScheduleSchedule ​

schedule: Schedule

schedule: Schedule

schedule: Schedule

Schedule: Schedule

Schedule: Schedule

When to start filling the pool (e.g. start of business hours).

registrationLevelregistration_levelregistrationLevelRegistrationLevelRegistrationLevel ​

registrationLevel?: string

registration_level?: str

registrationLevel?: java.lang.String

RegistrationLevel?: string

RegistrationLevel?: *string

Registration level — must match how your runners are set up in GitHub.

Choose 'org' for org-wide runners, 'repo' for repo-level. See the setup wizard for choosing repo vs org.

See: Setup GitHub

Default: 'repo'

reporeporepoRepoRepo ​

repo?: string

repo?: str

repo?: java.lang.String

Repo?: string

Repo?: *string

Repository name (without owner) where runners will be registered.

Required when registrationLevel is 'repo'.

Released under the Apache-2.0 License.