Skip to content

Commit 800a0fc

Browse files
authored
Reorganize config into sections, parse it with custom parser (#1481)
* wrote a custom parser that turns the output from tomllib into a strongly-typed dataclass-based config object * reorganized the config file format into sections, which are used in both CMS code and in the config file * exposed some previously undocumented options in the sample config file * removed unused/deprecated config options (other_services, is_proxy_used, use_cgroups, RWS: timeout, web_dir)
1 parent 4a78f75 commit 800a0fc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+799
-669
lines changed

cms/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# log
3838
# Nothing intended for external use, no need to advertise anything.
3939
# conf
40-
"Address", "ServiceCoord", "ConfigError", "async_config", "config",
40+
"Address", "ServiceCoord", "ConfigError", "config",
4141
# util
4242
"mkdir", "rmtree", "utf8_decoder", "get_safe_shard", "get_service_address",
4343
"get_service_shards", "contest_id_from_args", "default_argument_parser",
@@ -74,7 +74,7 @@
7474
FEEDBACK_LEVEL_OI_RESTRICTED = "oi_restricted"
7575

7676

77-
from .conf import Address, ServiceCoord, ConfigError, async_config, config
77+
from .conf import Address, ServiceCoord, ConfigError, config
7878
from .util import mkdir, rmtree, utf8_decoder, get_safe_shard, \
7979
get_service_address, get_service_shards, contest_id_from_args, \
8080
default_argument_parser

0 commit comments

Comments
 (0)