Skip to content

Commit ec8bd64

Browse files
committed
Update config-default.yaml
1 parent 1140140 commit ec8bd64

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

gen3workflow/config-default.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,11 @@ TASK_IMAGE_WHITELIST: []
5353
# - public.ecr.aws/random/approved/public:*
5454
# - 9876543210.dkr.ecr.us-east-1.amazonaws.com/approved/{username}:abc
5555
# - quay.io/nextflow/bash:*
56+
57+
58+
#############
59+
# METRICS #
60+
#############
61+
62+
ENABLE_PROMETHEUS_METRICS: false
63+
PROMETHEUS_MULTIPROC_DIR: /var/tmp/prometheus_metrics

gen3workflow/config.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def validate(self) -> None:
3939
def validate_top_level_configs(self) -> None:
4040
schema = {
4141
"type": "object",
42-
"additionalProperties": True,
42+
"additionalProperties": False,
4343
"properties": {
4444
"HOSTNAME": {"type": "string"},
4545
"APP_DEBUG": {"type": "boolean"},
@@ -61,11 +61,8 @@ def validate_top_level_configs(self) -> None:
6161
"DB_CONNECTION_STRING": {"type": "string"},
6262
"TASK_IMAGE_WHITELIST": {"type": "array", "items": {"type": "string"}},
6363
"TES_SERVER_URL": {"type": "string"},
64-
"ENABLE_PROMETHEUS_METRICS": {"type": "boolean", "default": False},
65-
"PROMETHEUS_MULTIPROC_DIR": {
66-
"type": "string",
67-
"default": "/var/tmp/prometheus_metrics",
68-
},
64+
"ENABLE_PROMETHEUS_METRICS": {"type": "boolean"},
65+
"PROMETHEUS_MULTIPROC_DIR": {"type": "string"},
6966
},
7067
}
7168
validate(instance=self, schema=schema)

0 commit comments

Comments
 (0)