Skip to content

Commit

Permalink
revert: name change for runner cfg keys
Browse files Browse the repository at this point in the history
  • Loading branch information
aarnphm committed Nov 24, 2022
1 parent 3d3af62 commit 0cb8d9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bentoml/_internal/configuration/containers.py
Expand Up @@ -135,11 +135,11 @@ def __init__(
) from None

def _finalize(self):
GLOBAL_RUNNERS_KEY = ["batching", "resources", "logging", "metrics", "timeout"]
global_runner_cfg = {k: self.config["runners"][k] for k in GLOBAL_RUNNERS_KEY}
RUNNER_CFG_KEYS = ["batching", "resources", "logging", "metrics", "timeout"]
global_runner_cfg = {k: self.config["runners"][k] for k in RUNNER_CFG_KEYS}
custom_runners_cfg = dict(
filter(
lambda kv: kv[0] not in GLOBAL_RUNNERS_KEY,
lambda kv: kv[0] not in RUNNER_CFG_KEYS,
self.config["runners"].items(),
)
)
Expand Down

0 comments on commit 0cb8d9b

Please sign in to comment.