mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2026-04-15 01:41:56 +00:00
Allow specifying limits for pipeline steps from server config (#2085)
This commit is contained in:
committed by
Brad Rydzewski
parent
3ed811644f
commit
daa23ce673
11
model/resource_limit.go
Normal file
11
model/resource_limit.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package model
|
||||
|
||||
// ResourceLimit is the resource limit to set on pipeline steps
|
||||
type ResourceLimit struct {
|
||||
MemSwapLimit int64
|
||||
MemLimit int64
|
||||
ShmSize int64
|
||||
CPUQuota int64
|
||||
CPUShares int64
|
||||
CPUSet string
|
||||
}
|
||||
Reference in New Issue
Block a user