mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
@@ -345,7 +345,7 @@ type DeploymentValues struct {
|
||||
// HTTPAddress is a string because it may be set to zero to disable.
|
||||
HTTPAddress serpent.String `json:"http_address,omitempty" typescript:",notnull"`
|
||||
AutobuildPollInterval serpent.Duration `json:"autobuild_poll_interval,omitempty"`
|
||||
JobHangDetectorInterval serpent.Duration `json:"job_hang_detector_interval,omitempty"`
|
||||
JobReaperDetectorInterval serpent.Duration `json:"job_hang_detector_interval,omitempty"`
|
||||
DERP DERP `json:"derp,omitempty" typescript:",notnull"`
|
||||
Prometheus PrometheusConfig `json:"prometheus,omitempty" typescript:",notnull"`
|
||||
Pprof PprofConfig `json:"pprof,omitempty" typescript:",notnull"`
|
||||
@@ -1287,13 +1287,13 @@ func (c *DeploymentValues) Options() serpent.OptionSet {
|
||||
Annotations: serpent.Annotations{}.Mark(annotationFormatDuration, "true"),
|
||||
},
|
||||
{
|
||||
Name: "Job Hang Detector Interval",
|
||||
Description: "Interval to poll for hung jobs and automatically terminate them.",
|
||||
Name: "Job Reaper Detect Interval",
|
||||
Description: "Interval to poll for hung and pending jobs and automatically terminate them.",
|
||||
Flag: "job-hang-detector-interval",
|
||||
Env: "CODER_JOB_HANG_DETECTOR_INTERVAL",
|
||||
Hidden: true,
|
||||
Default: time.Minute.String(),
|
||||
Value: &c.JobHangDetectorInterval,
|
||||
Value: &c.JobReaperDetectorInterval,
|
||||
YAML: "jobHangDetectorInterval",
|
||||
Annotations: serpent.Annotations{}.Mark(annotationFormatDuration, "true"),
|
||||
},
|
||||
|
||||
@@ -90,7 +90,7 @@ var RBACResourceActions = map[RBACResource][]RBACAction{
|
||||
ResourceOrganization: {ActionCreate, ActionDelete, ActionRead, ActionUpdate},
|
||||
ResourceOrganizationMember: {ActionCreate, ActionDelete, ActionRead, ActionUpdate},
|
||||
ResourceProvisionerDaemon: {ActionCreate, ActionDelete, ActionRead, ActionUpdate},
|
||||
ResourceProvisionerJobs: {ActionRead},
|
||||
ResourceProvisionerJobs: {ActionCreate, ActionRead, ActionUpdate},
|
||||
ResourceReplicas: {ActionRead},
|
||||
ResourceSystem: {ActionCreate, ActionDelete, ActionRead, ActionUpdate},
|
||||
ResourceTailnetCoordinator: {ActionCreate, ActionDelete, ActionRead, ActionUpdate},
|
||||
|
||||
Reference in New Issue
Block a user