Skip to content

Option to manually set concurrent job limit. #2756

Open
@qoomon

Description

@qoomon

Act version

0.2.76

Feature description

Currently the max parallel jobs per stage is defined by the amount of CPUs see

act/pkg/runner/runner.go

Lines 198 to 203 in 324bab6

ncpu := runtime.NumCPU()
if 1 > ncpu {
ncpu = 1
}
log.Debugf("Detected CPUs: %d", ncpu)
return common.NewParallelExecutor(ncpu, pipeline...)(ctx)

It would be awesome if there would be an CLI option to overwrite this value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions