From e7d632654617af01c92be9493dbea959944d3beb Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Thu, 7 Sep 2023 17:12:49 +0200 Subject: [PATCH] Fix: Ensure job_type never exceeds limit --- slate/slate.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slate/slate.py b/slate/slate.py index f4db382..f798e8e 100644 --- a/slate/slate.py +++ b/slate/slate.py @@ -305,6 +305,8 @@ class Slate(): config = copy.deepcopy(orig_config) runnerConf = self._make_config_for_run(config, r) wandbC = self.consume(runnerConf, 'wandb', {}, expand=True, delta_desc=runnerConf.pop('delta_desc', 'BASE')) + if 'job_type' in wandbC and len(wandbC['job_type']) > 62: + wandbC['job_type'] = "..."+wandbC['job_type'][-50:] with wandb.init( project=project, config=copy.deepcopy(runnerConf),